]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix crash in IPAL9921 : Crash after try to display geometry object (supervisor result... OCC_development_for_3_2_0a2
authormkr <mkr@opencascade.com>
Fri, 10 Mar 2006 13:59:53 +0000 (13:59 +0000)
committermkr <mkr@opencascade.com>
Fri, 10 Mar 2006 13:59:53 +0000 (13:59 +0000)
src/GEOM/GEOM_Object.cxx

index f386840bbb9600ad923730c719dfdda119bfa86a..4cde8f98f1d8b2236aa41e8c43ecdf660d5ed336 100644 (file)
@@ -259,7 +259,7 @@ TCollection_AsciiString GEOM_Object::GetAuxData()
 bool GEOM_Object::IsMainShape()
 {
   Handle(GEOM_Function) aFunction = GetFunction(1);
-  if(aFunction == NULL || aFunction->GetDriverGUID() != GetSubShapeID()) return true;
+  if(aFunction.IsNull() || aFunction->GetDriverGUID() != GetSubShapeID()) return true; // mkr : IPAL9921
   return false;
 }