Fix null-ptr dereference.
This commit is contained in:
parent
cb74050d13
commit
8bccb5f85c
pcbnew
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue