Salome HOME
compilation on Linux
[modules/hydro.git] / src / HYDRO_tests / TestViewer.cxx
index 1fef8ca1a5dca3e73054239941adb43b0e6a04c7..8315d811ff5d02c3cfccbe535c3a6d775c89b465 100644 (file)
@@ -133,6 +133,10 @@ void TestViewer::show( const TopoDS_Shape& theShape, int theMode, bool isFitAll,
   context()->EraseAll( Standard_False );
   
   myKey = theKey;
+
+  if( theShape.IsNull() )
+    return;
+
   int i = 0;
   if( theShape.ShapeType()==TopAbs_SHELL )
   {