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