m_root is not guaranteed to be non-null.

This commit is contained in:
Jeff Young 2025-04-01 18:36:50 +01:00
parent 05e9772d54
commit 967bf1d0a1

View File

@ -761,7 +761,8 @@ SCH_SHEET_LIST::SCH_SHEET_LIST( SCH_SHEET* aSheet )
void SCH_SHEET_LIST::BuildSheetList( SCH_SHEET* aSheet, bool aCheckIntegrity )
{
wxCHECK_RET( aSheet != nullptr, wxT( "Cannot build sheet list from undefined sheet." ) );
if( !aSheet )
return;
std::vector<SCH_SHEET*> badSheets;