]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue #3126 : Dump/Load study results in invalid Wire
authormpv <mpv@opencascade.com>
Wed, 18 Dec 2019 10:15:07 +0000 (13:15 +0300)
committermpv <mpv@opencascade.com>
Wed, 18 Dec 2019 10:15:07 +0000 (13:15 +0300)
src/Model/Model_AttributeSelection.cpp

index 9d1e6cb65311873de13c46cde27684fe2a2bdcc5..48a42bd8908aa24dde7046b28741e70826de0739 100644 (file)
@@ -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);