From: vsv Date: Tue, 30 Dec 2014 12:42:21 +0000 (+0300) Subject: Issue #347: Avoid crash on empty feature X-Git-Tag: V_0.7.0_rc1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e071d07f9749d3b497239c1269ba094d67d8fea5;p=modules%2Fshaper.git Issue #347: Avoid crash on empty feature --- 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)