From: mpv Date: Wed, 18 Dec 2019 10:15:07 +0000 (+0300) Subject: Fix for the issue #3126 : Dump/Load study results in invalid Wire X-Git-Tag: V9_5_0a1~82 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bbe4f48439098ec9748a224ce4b6ab52414505be;p=modules%2Fshaper.git Fix for the issue #3126 : Dump/Load study results in invalid Wire --- diff --git a/src/Model/Model_AttributeSelection.cpp b/src/Model/Model_AttributeSelection.cpp index 9d1e6cb65..48a42bd89 100644 --- a/src/Model/Model_AttributeSelection.cpp +++ b/src/Model/Model_AttributeSelection.cpp @@ -790,6 +790,9 @@ std::string Model_AttributeSelection::namingName(const std::string& theDefaultNa } ResultPtr aCont = context(); + if (!aCont.get()) { + return ""; // invalid case + } TDF_Label aSelLab = selectionLabel(); if (aSelLab.IsAttribute(kSIMPLE_REF_ID)) { // whole context, no value return contextName(aCont);