From 16681876df49d631e6b266a3aeff18c4d4b244f4 Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 25 Feb 2011 07:05:23 +0000 Subject: [PATCH] Fix regression caused by introducing of GUI observers - Show/Hide children operation in GEOM module has stopped working. --- src/SalomeApp/SalomeApp_DataObject.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SalomeApp/SalomeApp_DataObject.cxx b/src/SalomeApp/SalomeApp_DataObject.cxx index 328f666c6..a4a1232dd 100644 --- a/src/SalomeApp/SalomeApp_DataObject.cxx +++ b/src/SalomeApp/SalomeApp_DataObject.cxx @@ -386,7 +386,7 @@ bool SalomeApp_DataObject::expandable() const { bool exp = true; _PTR(GenericAttribute) anAttr; - if ( myObject->FindAttribute( anAttr, "AttributeExpandable" ) ) { + if ( myObject && myObject->FindAttribute( anAttr, "AttributeExpandable" ) ) { _PTR(AttributeExpandable) aAttrExp = anAttr; exp = aAttrExp->IsExpandable(); } -- 2.39.2