Salome HOME
refs #1326: debug of the selection on bathymetry
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_BathymetryPrs.cxx
index a08073c47d309d0d83b95135bbe21cb71d998806..1334896f578f2d79008f9043460feb2898485fbe 100644 (file)
@@ -189,6 +189,8 @@ void HYDROGUI_BathymetryPrs::AddPoint( const Handle(Graphic3d_ArrayOfPoints)& th
                                        const Handle(SelectMgr_EntityOwner)& theOwner )
 {
   Handle(HYDROGUI_BathymetryPointOwner) anOwner = Handle(HYDROGUI_BathymetryPointOwner)::DownCast( theOwner );
+  if( anOwner.IsNull() )
+    return;
   gp_Pnt p = GetPoint( anOwner->GetIndex() );
   thePoints->AddVertex( p );
 }