X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_ResultPrs.cpp;h=6de0bba8fc0d5037959669ea11288756b16420f4;hb=3c5cc0cd68b845cee1d58e61974ae0013b50199c;hp=b039e9bfd34ee9223d29f27acbf8d207968f362c;hpb=d9db5498b576854aae37ddf8c0bb6fceb264712e;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_ResultPrs.cpp b/src/ModuleBase/ModuleBase_ResultPrs.cpp index b039e9bfd..6de0bba8f 100644 --- a/src/ModuleBase/ModuleBase_ResultPrs.cpp +++ b/src/ModuleBase/ModuleBase_ResultPrs.cpp @@ -46,6 +46,8 @@ void ModuleBase_ResultPrs::Compute(const Handle(PrsMgr_PresentationManager3d)& t const Standard_Integer theMode) { boost::shared_ptr aShapePtr = ModelAPI_Tools::shape(myResult); + if (!aShapePtr) + return; myOriginalShape = aShapePtr->impl(); Set(aShapePtr->impl()); AIS_Shape::Compute(thePresentationManager, thePresentation, theMode);