diff --git a/src/Mod/PartDesign/Gui/Workbench.cpp b/src/Mod/PartDesign/Gui/Workbench.cpp index f6cbc13d5..6b9a620aa 100644 --- a/src/Mod/PartDesign/Gui/Workbench.cpp +++ b/src/Mod/PartDesign/Gui/Workbench.cpp @@ -370,7 +370,9 @@ void Workbench::_switchToDocument(const App::Document* doc) else { activeBody = Gui::Application::Instance->activeView()->getActiveObject("Body"); + assert(activeBody); activePart = Gui::Application::Instance->activeView()->getActiveObject("Part"); + assert(activePart); // document change not implemented yet assert(activePart->getDocument() == doc);