[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 0b75d53676
commit 0f7f7136ce

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