mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-03 20:57:39 -06:00
Guard against null pointer access when fracture template not set.
This commit is contained in:
parent
be8b54046e
commit
42630d99b7
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user