From: vsr Date: Fri, 25 Feb 2011 07:05:23 +0000 (+0000) Subject: Fix regression caused by introducing of GUI observers - Show/Hide children operation... X-Git-Tag: V6_3_0a1~48 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=16681876df49d631e6b266a3aeff18c4d4b244f4;p=modules%2Fgui.git Fix regression caused by introducing of GUI observers - Show/Hide children operation in GEOM module has stopped working. --- 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(); }