diff --git a/src/Mod/PartDesign/Gui/ViewProviderBody.cpp b/src/Mod/PartDesign/Gui/ViewProviderBody.cpp index 8722e0a024..3e3a3b6f39 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderBody.cpp +++ b/src/Mod/PartDesign/Gui/ViewProviderBody.cpp @@ -452,8 +452,10 @@ void ViewProviderBody::unifyVisualProperty(const App::Property* prop) { } //copy over the properties data - auto fprop = gdoc->getViewProvider(feature)->getPropertyByName(prop->getName()); - fprop->Paste(*prop); + if (Gui::ViewProvider* vp = gdoc->getViewProvider(feature)) { + auto fprop = vp->getPropertyByName(prop->getName()); + fprop->Paste(*prop); + } } }