From bb377d8b7e88b6f9d4afcb327f23fba53e7c4f5f Mon Sep 17 00:00:00 2001 From: Jon Jenssen Date: Tue, 19 Sep 2023 15:15:21 +0200 Subject: [PATCH] Build fix --- .../GeoMech/RimGeoMechFaultReactivationResult.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();