diff --git a/pcbnew/class_board.cpp b/pcbnew/class_board.cpp index ef65e50bd9..629f2b9dbe 100644 --- a/pcbnew/class_board.cpp +++ b/pcbnew/class_board.cpp @@ -2702,6 +2702,9 @@ void BOARD::ReplaceNetlist( NETLIST& aNetlist, bool aDeleteSinglePadNets, for( const auto cnItem : connAlgo->PadList() ) { + if( !cnItem->Valid() ) + continue; + int net = cnItem->Parent()->GetNetCode(); if( net > 0 )