mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 17:32:13 -05:00
Further crash fix in RimStimPlanColors
This commit is contained in:
1 parent
3d6d8d3220
commit
1a04794f7a
1 file changed
+3
@@ -96,6 +96,7 @@ void RimStimPlanColors::setShowStimPlanMesh( bool showStimPlanMesh )
|
||||
void RimStimPlanColors::loadDataAndUpdate()
|
||||
{
|
||||
RimFractureTemplateCollection* fractureTemplates = fractureTemplateCollection();
|
||||
if ( !fractureTemplates ) return;
|
||||
|
||||
std::vector<std::pair<QString, QString>> resultNameAndUnits = fractureTemplates->resultNamesAndUnits();
|
||||
|
||||
@@ -352,6 +353,8 @@ RimFractureTemplateCollection* RimStimPlanColors::fractureTemplateCollection() c
|
||||
RimProject* proj = nullptr;
|
||||
this->firstAncestorOrThisOfType( proj );
|
||||
|
||||
if ( !proj ) return nullptr;
|
||||
|
||||
return proj->activeOilField()->fractureDefinitionCollection();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user