]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix crash in hasAnnotations() method apl/22873
authorrnv <rnv@opencascade.com>
Fri, 20 Jan 2017 10:00:50 +0000 (13:00 +0300)
committerrnv <rnv@opencascade.com>
Fri, 20 Jan 2017 10:00:50 +0000 (13:00 +0300)
src/GEOMGUI/GEOMGUI_AnnotationAttrs.cxx

index 081fb7341b0a6e6c0386f328f163268d3f2cac9d..1a09b5024955b07b27d18df9ce6fb33c257d65c3 100755 (executable)
@@ -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)();
   }