]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix regression caused by introducing of GUI observers - Show/Hide children operation...
authorvsr <vsr@opencascade.com>
Fri, 25 Feb 2011 07:05:23 +0000 (07:05 +0000)
committervsr <vsr@opencascade.com>
Fri, 25 Feb 2011 07:05:23 +0000 (07:05 +0000)
src/SalomeApp/SalomeApp_DataObject.cxx

index 328f666c67347ebb34f50e773908b2ca33466a8e..a4a1232ddf3fa33d97447caae6f6dc29a0e74eb4 100644 (file)
@@ -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();
   }