From e33e8d02e9c95bdc277c2c490d8f03c87f6971f6 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 22 Aug 2018 16:38:05 +0200 Subject: [PATCH] Fix overzealous wxASSERT --- eeschema/component_references_lister.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eeschema/component_references_lister.cpp b/eeschema/component_references_lister.cpp index a987b2943e..a7968abced 100644 --- a/eeschema/component_references_lister.cpp +++ b/eeschema/component_references_lister.cpp @@ -718,10 +718,11 @@ int SCH_REFERENCE_LIST::CheckAnnotation( REPORTER& aReporter ) SCH_REFERENCE::SCH_REFERENCE( SCH_COMPONENT* aComponent, LIB_PART* aLibPart, SCH_SHEET_PATH& aSheetPath ) { - wxASSERT( aComponent != NULL && aLibPart != NULL ); + wxASSERT( aComponent != NULL ); m_RootCmp = aComponent; - m_Entry = aLibPart; + m_Entry = aLibPart; // Warning: can be nullptr for orphan components + // (i.e. with a symbol library not found) m_Unit = aComponent->GetUnitSelection( &aSheetPath ); m_SheetPath = aSheetPath; m_IsNew = false;