diff --git a/pcbnew/footprint.cpp b/pcbnew/footprint.cpp index 2d0ce7f6f7..8f30eb5b61 100644 --- a/pcbnew/footprint.cpp +++ b/pcbnew/footprint.cpp @@ -168,7 +168,10 @@ FOOTPRINT::FOOTPRINT( const FOOTPRINT& aFootprint ) : newGroup->GetItems().clear(); for( BOARD_ITEM* member : group->GetItems() ) - newGroup->AddItem( ptrMap[ member ] ); + { + if( ptrMap.count( member ) ) + newGroup->AddItem( ptrMap[ member ] ); + } } // Copy auxiliary data: 3D_Drawings info