diff --git a/pcbnew/plugins/altium/altium_pcb.cpp b/pcbnew/plugins/altium/altium_pcb.cpp index c534a232ca..0fb2a005db 100644 --- a/pcbnew/plugins/altium/altium_pcb.cpp +++ b/pcbnew/plugins/altium/altium_pcb.cpp @@ -314,7 +314,7 @@ std::vector ALTIUM_PCB::GetKicadLayersToIterate( ALTIUM_LAYER aAlt for( PCB_LAYER_ID layer : LSET::AllCuMask().Seq() ) { - if( m_board->IsLayerEnabled( layer ) ) + if( !m_board || m_board->IsLayerEnabled( layer ) ) layers.emplace_back( layer ); }