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)();
   }