]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for bug IPAL18514 4x: CRASH after trying to build of presentation.
authorrnv <rnv@opencascade.com>
Wed, 24 Dec 2008 12:20:35 +0000 (12:20 +0000)
committerrnv <rnv@opencascade.com>
Wed, 24 Dec 2008 12:20:35 +0000 (12:20 +0000)
src/CONVERTOR/VISU_Convertor_impl.cxx

index 7d39c04e700e9519e8d92bc30f47df1068955a9b..0658fc5b510b67e1f38bb02af67c4d4fec94808d 100644 (file)
@@ -353,6 +353,11 @@ namespace
                   const VISU::PMeshOnEntityImpl& theMeshOnEntity,
                   const VISU::PProfileImpl& theProfile)
   {
+    //rnv fix for bug IPAL18514        4x (CRASH after trying to build of presentation):
+    // throw exection in case if pointer on profile =0
+    if(!theProfile.get())
+      EXCEPTION(std::runtime_error,"GetMeshOnProfile: theProfile.get() == NULL");
+
     // rnv fix for issue 19999:
     // Throw exception in case if mesh on entity from profile is not equal
     // input mesh on entity. This exception catch in tne VISU_Convertor_impl::GetTimeStampOnMesh