From 7b8b45c0bf3119425ef7c662a517900b4a6dc601 Mon Sep 17 00:00:00 2001 From: mkr Date: Fri, 10 Mar 2006 13:59:53 +0000 Subject: [PATCH] Fix crash in IPAL9921 : Crash after try to display geometry object (supervisor result) after save/restore study. --- src/GEOM/GEOM_Object.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GEOM/GEOM_Object.cxx b/src/GEOM/GEOM_Object.cxx index f386840bb..4cde8f98f 100644 --- a/src/GEOM/GEOM_Object.cxx +++ b/src/GEOM/GEOM_Object.cxx @@ -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; } -- 2.39.2