[PD] Check if property is named before strcmp

This commit is contained in:
Ajinkya Dahale
2021-11-10 18:50:55 -05:00
committed by Uwe
parent d86a73f07e
commit a4fa45b589

View File

@@ -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);