Pcbnew: fix crash in netlist updater

This commit is contained in:
qu1ck 2019-06-01 18:33:33 -07:00 committed by Seth Hillbrand
parent 6a45446496
commit 41a9546b3d
1 changed files with 1 additions and 1 deletions

View File

@ -689,7 +689,7 @@ bool BOARD_NETLIST_UPDATER::UpdateNetlist( NETLIST& aNetlist )
m_errorCount = 0;
m_warningCount = 0;
m_newFootprintsCount = 0;
MODULE* lastPreexistingFootprint = m_board->Modules().back();
MODULE* lastPreexistingFootprint = m_board->Modules().empty() ? NULL : m_board->Modules().back();
cacheCopperZoneConnections();