diff --git a/ApplicationLibCode/ProjectDataModel/GeoMech/RimGeoMechFaultReactivationResult.cpp b/ApplicationLibCode/ProjectDataModel/GeoMech/RimGeoMechFaultReactivationResult.cpp index 4594896ca6..66707d8ef6 100644 --- a/ApplicationLibCode/ProjectDataModel/GeoMech/RimGeoMechFaultReactivationResult.cpp +++ b/ApplicationLibCode/ProjectDataModel/GeoMech/RimGeoMechFaultReactivationResult.cpp @@ -107,8 +107,9 @@ RimGeoMechFaultReactivationResult::~RimGeoMechFaultReactivationResult() void RimGeoMechFaultReactivationResult::onLoadDataAndUpdate() { auto geomCase = geoMechCase(); + if ( geomCase == nullptr ) return; - auto filename = geoMechCase()->gridFileName(); + auto filename = geomCase->gridFileName(); QFileInfo fi( filename ); auto folder = fi.path(); auto basename = fi.baseName();