Fix null-ptr dereference.

This commit is contained in:
Jeff Young 2020-08-19 13:28:02 +01:00
parent cb74050d13
commit 8bccb5f85c
1 changed files with 3 additions and 1 deletions

View File

@ -123,7 +123,9 @@ public:
*/
const wxString& GetNetname() const
{
return m_netinfo->GetNetname();
static const wxString s_emptyString;
return m_netinfo ? m_netinfo->GetNetname() : s_emptyString;
}
/**