mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-31 06:50:33 +05:00
Fix crash in hasAnnotations() method
This commit is contained in:
parent
7deaf84d7e
commit
21feae878c
@ -101,7 +101,7 @@ Handle(GEOMGUI_AnnotationAttrs) GEOMGUI_AnnotationAttrs::FindAttributes( const _
|
|||||||
_PTR(GenericAttribute) aGenericAttr;
|
_PTR(GenericAttribute) aGenericAttr;
|
||||||
_PTR(AttributeParameter) aParameterMap;
|
_PTR(AttributeParameter) aParameterMap;
|
||||||
|
|
||||||
if ( !theObject->FindAttribute( aGenericAttr, "AttributeParameter" ) )
|
if ( !theObject || !theObject->FindAttribute( aGenericAttr, "AttributeParameter" ) )
|
||||||
{
|
{
|
||||||
return Handle(GEOMGUI_AnnotationAttrs)();
|
return Handle(GEOMGUI_AnnotationAttrs)();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user