Nullptr safety. (Sentry KICAD-5N)

This commit is contained in:
Jeff Young 2023-01-18 01:05:27 +00:00
parent 47d88c5647
commit f90b04c715
1 changed files with 25 additions and 22 deletions

View File

@ -935,6 +935,8 @@ static void CreateSignalsSection( FILE* aFile, BOARD* aPcb )
{
net = aPcb->FindNet( ii );
if( net )
{
if( net->GetNetname() == wxEmptyString ) // dummy netlist (no connection)
{
msg.Printf( wxT( "NoConnection%d" ), NbNoConn++ );
@ -964,6 +966,7 @@ static void CreateSignalsSection( FILE* aFile, BOARD* aPcb )
}
}
}
}
fputs( "$ENDSIGNALS\n\n", aFile );
}