diff --git a/ApplicationCode/Commands/RicWellLogTools.cpp b/ApplicationCode/Commands/RicWellLogTools.cpp index cb6025773d..faeabfd294 100644 --- a/ApplicationCode/Commands/RicWellLogTools.cpp +++ b/ApplicationCode/Commands/RicWellLogTools.cpp @@ -95,7 +95,10 @@ bool RicWellLogTools::wellHasRftData(const QString& wellName) { if (resultCase = dynamic_cast(rimCase)) { - return resultCase->rftReader()->wellHasRftData(wellName); + if (resultCase->rftReader()) + { + return resultCase->rftReader()->wellHasRftData(wellName); + } } }