mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1777 Make access of data in RimStimPlanFractureTemplate robust
This commit makes it possible to open a project with invalid path to StimPlan, only displaying an error in the message window.
This commit is contained in:
@@ -185,7 +185,7 @@ void RimFractureTemplateCollection::createAndAssignTemplateCopyForNonMatchingUni
|
||||
|
||||
for (RimFractureTemplate* fractureTemplate : m_fractureDefinitions())
|
||||
{
|
||||
if (fractureTemplate)
|
||||
if (fractureTemplate && fractureTemplate->fractureGrid())
|
||||
{
|
||||
RimFractureTemplate* templateWithMatchingUnit = nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user