From: rnv Date: Wed, 17 Dec 2008 07:53:28 +0000 (+0000) Subject: Fix for bug IPAL18514 4x: CRASH after trying to build of presentation. X-Git-Tag: V4_1_4sp2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=61094848d8f2ee01c8322351257ae14403e3f951;p=modules%2Fvisu.git Fix for bug IPAL18514 4x: CRASH after trying to build of presentation. --- diff --git a/src/CONVERTOR/VISU_Convertor_impl.cxx b/src/CONVERTOR/VISU_Convertor_impl.cxx index 2d80b480..af645d9f 100644 --- a/src/CONVERTOR/VISU_Convertor_impl.cxx +++ b/src/CONVERTOR/VISU_Convertor_impl.cxx @@ -355,6 +355,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