mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Further crash fix in RimStimPlanColors
This commit is contained in:
parent
3d6d8d3220
commit
1a04794f7a
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user