From f0ae853141b98a681c8105728fdd1088a1d57115 Mon Sep 17 00:00:00 2001 From: Geoffrey Merck F4FXL - KC3FRA Date: Sun, 18 Nov 2018 22:10:16 +0100 Subject: [PATCH] Check for NULL is always a good idea... -_- --- Common/GatewayCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/GatewayCache.cpp b/Common/GatewayCache.cpp index 436817b..0b6d415 100644 --- a/Common/GatewayCache.cpp +++ b/Common/GatewayCache.cpp @@ -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); }