Don't continue with a null board in board import

Some plugin is failing and returning a null-board when the usual convention was exceptions

Fixes KICAD-3ZJ
This commit is contained in:
Marek Roszko 2023-10-01 09:38:30 -04:00
parent dca964092f
commit f1c5581802
1 changed files with 1 additions and 1 deletions

View File

@ -678,7 +678,7 @@ bool PCB_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
failedLoad = true;
}
if( failedLoad )
if( failedLoad || !loadedBoard )
{
// We didn't create a new blank board above, so do that now
Clear_Pcb( false );