mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Prevent nullptr dereference.
Fixes https://gitlab.com/kicad/code/kicad/issues/12516
This commit is contained in:
parent
eb19e32b40
commit
9a25464337
@ -708,7 +708,10 @@ void SCH_EDIT_FRAME::HardRedraw()
|
||||
item->ClearCaches();
|
||||
|
||||
for( std::pair<const wxString, LIB_SYMBOL*>& libSymbol : screen->GetLibSymbols() )
|
||||
libSymbol.second->ClearCaches();
|
||||
{
|
||||
if( libSymbol.second )
|
||||
libSymbol.second->ClearCaches();
|
||||
}
|
||||
|
||||
RecalculateConnections( LOCAL_CLEANUP );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user