From 4c267a52f180b3702b45642314545356805cd428 Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 11 Dec 2017 09:46:40 +0300 Subject: [PATCH] Center presentation validation: check interactive object on NULL --- src/PartSet/PartSet_WidgetMultiSelector.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PartSet/PartSet_WidgetMultiSelector.cpp b/src/PartSet/PartSet_WidgetMultiSelector.cpp index b552e9376..60d3d4a82 100755 --- a/src/PartSet/PartSet_WidgetMultiSelector.cpp +++ b/src/PartSet/PartSet_WidgetMultiSelector.cpp @@ -63,7 +63,8 @@ PartSet_WidgetMultiSelector::~PartSet_WidgetMultiSelector() bool PartSet_WidgetMultiSelector::isValidSelectionCustom(const ModuleBase_ViewerPrsPtr& thePrs) { bool aValid = false; - if (thePrs.get() && thePrs->interactive()->IsKind(STANDARD_TYPE(PartSet_CenterPrs))) + if (thePrs.get() && thePrs->interactive().get() && + thePrs->interactive()->IsKind(STANDARD_TYPE(PartSet_CenterPrs))) aValid = true; // we should not check acceptSubShape for such presentation else aValid = ModuleBase_WidgetMultiSelector::isValidSelectionCustom(thePrs); -- 2.39.2