nullptr safety

This commit is contained in:
Jeff Young 2023-12-18 18:36:14 +00:00
parent e4baf877c8
commit 1c73d3d967
1 changed files with 2 additions and 1 deletions

View File

@ -1932,7 +1932,8 @@ BOARD_CONNECTED_ITEM* PNS_KICAD_IFACE::createBoardItem( PNS::ITEM* aItem )
return nullptr; return nullptr;
} }
default: break; default:
return nullptr;
} }
if( net->GetNetCode() <= 0 ) if( net->GetNetCode() <= 0 )