From bbe4f48439098ec9748a224ce4b6ab52414505be Mon Sep 17 00:00:00 2001 From: mpv Date: Wed, 18 Dec 2019 13:15:07 +0300 Subject: [PATCH] Fix for the issue #3126 : Dump/Load study results in invalid Wire --- src/Model/Model_AttributeSelection.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.2