From 21feae878c0a720c005bb187e1671c744adb0e17 Mon Sep 17 00:00:00 2001 From: rnv Date: Fri, 20 Jan 2017 13:00:50 +0300 Subject: [PATCH] Fix crash in hasAnnotations() method --- src/GEOMGUI/GEOMGUI_AnnotationAttrs.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GEOMGUI/GEOMGUI_AnnotationAttrs.cxx b/src/GEOMGUI/GEOMGUI_AnnotationAttrs.cxx index 081fb7341..1a09b5024 100755 --- a/src/GEOMGUI/GEOMGUI_AnnotationAttrs.cxx +++ b/src/GEOMGUI/GEOMGUI_AnnotationAttrs.cxx @@ -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)(); } -- 2.39.2