PNS: Safety for evaluating item nets for rules
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13993
This commit is contained in:
@@ -896,6 +896,9 @@ static void inDiffPairFunc( LIBEVAL::CONTEXT* aCtx, void* self )
|
||||
{
|
||||
NETINFO_ITEM* netinfo = static_cast<BOARD_CONNECTED_ITEM*>( item )->GetNet();
|
||||
|
||||
if( !netinfo )
|
||||
return 0.0;
|
||||
|
||||
wxString refName = netinfo->GetNetname();
|
||||
wxString arg = argv->AsString();
|
||||
wxString baseName, coupledNet;
|
||||
|
||||
Reference in New Issue
Block a user