Guard against null pointer access when fracture template not set.

This commit is contained in:
Kristian Bendiksen 2020-11-02 19:15:32 +01:00
parent be8b54046e
commit 42630d99b7

View File

@ -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;