App: Bugfix for NULL-Pointer dereference of Property->getName()
This commit is contained in:
@@ -551,7 +551,7 @@ QString SelectionView::getProperty(App::DocumentObject* obj) const
|
||||
App::GeoFeature* geo = static_cast<App::GeoFeature*>(obj);
|
||||
const App::PropertyComplexGeoData* data = geo->getPropertyOfGeometry();
|
||||
const char* name = data ? data->getName() : nullptr;
|
||||
if (name) {
|
||||
if (App::Property::isValidName(name)) {
|
||||
property = QString::fromLatin1(name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user