diff --git a/common/lc_partselectionwidget.cpp b/common/lc_partselectionwidget.cpp index 03de8351..78e2e6bd 100644 --- a/common/lc_partselectionwidget.cpp +++ b/common/lc_partselectionwidget.cpp @@ -238,7 +238,9 @@ void lcPartSelectionListModel::SetCurrentModelCategory() lcModel* ActiveModel = gMainWindow->GetActiveModel(); lcPartsList PartsList; - ActiveModel->GetPartsList(gDefaultColor, true, true, PartsList); + + if (ActiveModel) + ActiveModel->GetPartsList(gDefaultColor, true, true, PartsList); for (const auto& PartIt : PartsList) mParts.emplace_back(std::pair((PieceInfo*)PartIt.first, QPixmap()));