From 42630d99b719fa0239ededa4ab4e0dada778c757 Mon Sep 17 00:00:00 2001 From: Kristian Bendiksen Date: Mon, 2 Nov 2020 19:15:32 +0100 Subject: [PATCH] Guard against null pointer access when fracture template not set. --- .../ProjectDataModel/Completions/RimFractureModel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ApplicationCode/ProjectDataModel/Completions/RimFractureModel.cpp b/ApplicationCode/ProjectDataModel/Completions/RimFractureModel.cpp index dc3b362f96..a303ee98ff 100644 --- a/ApplicationCode/ProjectDataModel/Completions/RimFractureModel.cpp +++ b/ApplicationCode/ProjectDataModel/Completions/RimFractureModel.cpp @@ -1614,6 +1614,8 @@ RiaDefines::ResultCatType RimFractureModel::eclipseResultCategory( RiaDefines::C } else if ( curveProperty == RiaDefines::CurveProperty::FACIES ) { + if ( !m_fractureModelTemplate ) return RiaDefines::ResultCatType::STATIC_NATIVE; + RimFaciesProperties* faciesProperties = m_fractureModelTemplate->faciesProperties(); if ( !faciesProperties ) return RiaDefines::ResultCatType::STATIC_NATIVE;