From e071d07f9749d3b497239c1269ba094d67d8fea5 Mon Sep 17 00:00:00 2001 From: vsv Date: Tue, 30 Dec 2014 15:42:21 +0300 Subject: [PATCH] Issue #347: Avoid crash on empty feature --- src/XGUI/XGUI_PropertyPanel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/XGUI/XGUI_PropertyPanel.cpp b/src/XGUI/XGUI_PropertyPanel.cpp index 2249d12a0..d0b270536 100644 --- a/src/XGUI/XGUI_PropertyPanel.cpp +++ b/src/XGUI/XGUI_PropertyPanel.cpp @@ -140,6 +140,8 @@ QWidget* XGUI_PropertyPanel::contentWidget() void XGUI_PropertyPanel::updateContentWidget(FeaturePtr theFeature) { // Invalid feature case on abort of the operation + if (theFeature.get() == NULL) + return; if(!theFeature->data()) return; foreach(ModuleBase_ModelWidget* eachWidget, myWidgets) -- 2.39.2