diff --git a/eeschema/sch_edit_frame.cpp b/eeschema/sch_edit_frame.cpp index 97ce323f13..36bb651bea 100644 --- a/eeschema/sch_edit_frame.cpp +++ b/eeschema/sch_edit_frame.cpp @@ -708,7 +708,10 @@ void SCH_EDIT_FRAME::HardRedraw() item->ClearCaches(); for( std::pair& libSymbol : screen->GetLibSymbols() ) - libSymbol.second->ClearCaches(); + { + if( libSymbol.second ) + libSymbol.second->ClearCaches(); + } RecalculateConnections( LOCAL_CLEANUP );