[PD] Check if property is named before strcmp

This commit is contained in:
Ajinkya Dahale
2021-11-11 01:13:17 +01:00
committed by Uwe
parent d86a73f07e
commit a4fa45b589
@@ -235,7 +235,7 @@ void ViewProviderAddSub::updateAddSubShapeIndicator() {
void ViewProviderAddSub::updateData(const App::Property* p) {
if(strcmp(p->getName(), "AddSubShape")==0)
if(p->getName() && strcmp(p->getName(), "AddSubShape")==0)
updateAddSubShapeIndicator();
PartDesignGui::ViewProvider::updateData(p);