Nullptr fixes.

This commit is contained in:
Jeff Young
2025-01-16 13:12:25 +00:00
parent 2cc39bc2be
commit 5f45c2c0d1
@@ -283,7 +283,9 @@ bool DRC_TEST_PROVIDER_COPPER_CLEARANCE::testSingleLayerItemAgainstItem( BOARD_I
std::shared_ptr<DRC_ITEM> drce = DRC_ITEM::Create( DRCE_SHORTING_ITEMS );
wxString msg;
msg.Printf( _( "(nets %s and %s)" ), net->GetNetname(), otherNet->GetNetname() );
msg.Printf( _( "(nets %s and %s)" ),
net ? net->GetNetname() : _( "<no net>" ),
otherNet ? otherNet->GetNetname() : _( "<no net>" ) );
drce->SetErrorMessage( drce->GetErrorText() + wxS( " " ) + msg );
drce->SetItems( item, other );