From 4d5ef64c070b00a30f99ac5ff89034e90d28d7e6 Mon Sep 17 00:00:00 2001 From: vsv Date: Mon, 29 Dec 2014 18:38:40 +0300 Subject: [PATCH] Avoid crash with null shape for presentation --- src/ModuleBase/ModuleBase_ResultPrs.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); + } } -- 2.39.2