Null pointer safety.
Fixes https://gitlab.com/kicad/code/kicad/issues/6263
This commit is contained in:
parent
52e9ec5954
commit
2a8ea25209
|
@ -370,7 +370,7 @@ void BACK_ANNOTATE::applyChangelist()
|
|||
const wxString& pinNumber = entry.first;
|
||||
const wxString& shortNetName = entry.second;
|
||||
SCH_PIN* pin = comp->GetPin( pinNumber );
|
||||
SCH_CONNECTION* conn = pin->Connection( &ref.GetSheetPath() );
|
||||
SCH_CONNECTION* conn = pin ? pin->Connection( &ref.GetSheetPath() ) : nullptr;
|
||||
|
||||
wxString key = shortNetName + ref.GetSheetPath().PathAsString();
|
||||
|
||||
|
|
Loading…
Reference in New Issue