Fix crash in hasAnnotations() method

This commit is contained in:
rnv 2017-01-20 13:00:50 +03:00
parent 7deaf84d7e
commit 21feae878c

View File

@ -101,7 +101,7 @@ Handle(GEOMGUI_AnnotationAttrs) GEOMGUI_AnnotationAttrs::FindAttributes( const _
_PTR(GenericAttribute) aGenericAttr;
_PTR(AttributeParameter) aParameterMap;
if ( !theObject->FindAttribute( aGenericAttr, "AttributeParameter" ) )
if ( !theObject || !theObject->FindAttribute( aGenericAttr, "AttributeParameter" ) )
{
return Handle(GEOMGUI_AnnotationAttrs)();
}