]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
refs #436: crash on show all (invalid profile)
authorasl <asl@opencascade.com>
Fri, 29 Aug 2014 10:28:05 +0000 (10:28 +0000)
committerasl <asl@opencascade.com>
Fri, 29 Aug 2014 10:28:05 +0000 (10:28 +0000)
src/HYDROGUI/HYDROGUI_Shape.cxx

index f403aaf29cd770387046fda289fd55cb04526d0a..fcbd28bb89f1fafa5ece9fa6c46b8002fdf28cd6 100644 (file)
@@ -509,6 +509,8 @@ void HYDROGUI_Shape::buildShape()
   erase();
 
   myShape = createShape();
+  if( myShape.IsNull() )
+    return;
 
   Handle_AIS_Shape anAISShape = Handle_AIS_Shape::DownCast( myShape );
   if( !anAISShape.IsNull() )