From: vsv Date: Mon, 29 Dec 2014 15:38:40 +0000 (+0300) Subject: Avoid crash with null shape for presentation X-Git-Tag: V_0.7.0_rc1~13^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4d5ef64c070b00a30f99ac5ff89034e90d28d7e6;p=modules%2Fshaper.git Avoid crash with null shape for presentation --- diff --git a/src/ModuleBase/ModuleBase_ResultPrs.cpp b/src/ModuleBase/ModuleBase_ResultPrs.cpp index 5031dac24..3e24e1e76 100644 --- a/src/ModuleBase/ModuleBase_ResultPrs.cpp +++ b/src/ModuleBase/ModuleBase_ResultPrs.cpp @@ -51,8 +51,10 @@ void ModuleBase_ResultPrs::Compute(const Handle(PrsMgr_PresentationManager3d)& t if (!aShapePtr) return; myOriginalShape = aShapePtr->impl(); - Set(aShapePtr->impl()); - AIS_Shape::Compute(thePresentationManager, thePresentation, theMode); + if (!myOriginalShape.IsNull()) { + Set(aShapePtr->impl()); + AIS_Shape::Compute(thePresentationManager, thePresentation, theMode); + } }