]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
IPAL21422 TC5.1.3: SIGSEGV during executing test GEOM-002 on close study
authordmv <dmv@opencascade.com>
Thu, 22 Oct 2009 07:11:59 +0000 (07:11 +0000)
committerdmv <dmv@opencascade.com>
Thu, 22 Oct 2009 07:11:59 +0000 (07:11 +0000)
src/GEOM/GEOM_Engine.cxx

index cde59bfc5e48c51a12cf8619e470c588e79a5c85..a388373298874dbce6d3ed924d634588d61d3807 100644 (file)
@@ -328,7 +328,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();