Salome HOME
IPAL21422 TC5.1.3: SIGSEGV during executing test GEOM-002 on close study
authordmv <dmv@opencascade.com>
Thu, 22 Oct 2009 07:09:09 +0000 (07:09 +0000)
committerdmv <dmv@opencascade.com>
Thu, 22 Oct 2009 07:09:09 +0000 (07:09 +0000)
src/GEOM/GEOM_Engine.cxx

index 7a572ba1fca7ce2de164d043bb8f22452041c04f..f239246ad98af8e549f0a1d2cce76c76ba86216e 100644 (file)
@@ -370,7 +370,7 @@ Handle(GEOM_Object) GEOM_Engine::AddSubShape(Handle(GEOM_Object) theMainShape,
 //=============================================================================
 bool GEOM_Engine::RemoveObject(Handle(GEOM_Object) theObject)
 {
-  if (!theObject) return false;
+  if (theObject.IsNull()) return false;
 
   int aDocID = theObject->GetDocID();