mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Fix nullptr crash (KICAD-SPF).
This commit is contained in:
parent
a5ae1103e4
commit
d47454bb66
@ -280,7 +280,7 @@ bool NETCLASS::ContainsNetclassWithName( const wxString& netclass ) const
|
||||
return std::any_of( m_constituents.begin(), m_constituents.end(),
|
||||
[&netclass]( const NETCLASS* nc )
|
||||
{
|
||||
return nc->GetName() == netclass;
|
||||
return nc && nc->GetName() == netclass;
|
||||
} );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user