From: asl Date: Fri, 29 Aug 2014 10:28:05 +0000 (+0000) Subject: refs #436: crash on show all (invalid profile) X-Git-Tag: master_20140917~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c132761582a6fb4d6134487731454fc1ee2467b4;p=modules%2Fhydro.git refs #436: crash on show all (invalid profile) --- diff --git a/src/HYDROGUI/HYDROGUI_Shape.cxx b/src/HYDROGUI/HYDROGUI_Shape.cxx index f403aaf2..fcbd28bb 100644 --- a/src/HYDROGUI/HYDROGUI_Shape.cxx +++ b/src/HYDROGUI/HYDROGUI_Shape.cxx @@ -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() )