mirror of
https://github.com/g4klx/ircDDBGateway.git
synced 2026-02-08 16:24:17 +01:00
Check for NULL is always a good idea... -_-
This commit is contained in:
parent
713f2958c2
commit
f0ae853141
|
|
@ -45,7 +45,7 @@ void CGatewayCache::update(const wxString& gateway, const wxString& address, DST
|
|||
|
||||
if(rec == NULL) {
|
||||
rec = findByAddress(addr_in);//did this gateway punch to us and we do not have a gateway set for it ?
|
||||
if(rec->getGateway().empty())
|
||||
if(rec != NULL && rec->getGateway().empty())
|
||||
rec->setGateway(gateway);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue