Fix crash in IPAL9921 : Crash after try to display geometry object (supervisor result) after save/restore study.

This commit is contained in:
mkr 2006-03-10 13:59:53 +00:00
parent 57da196bbb
commit 7b8b45c0bf

View 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;
}