From 7f400f806db78d2cdfdd30513cf08df1b3ea14a1 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Tue, 5 May 2020 21:57:04 +0200 Subject: [PATCH] Guard nullpointer access --- .../RicWellPathExportCompletionDataFeatureImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ApplicationCode/Commands/CompletionExportCommands/RicWellPathExportCompletionDataFeatureImpl.cpp b/ApplicationCode/Commands/CompletionExportCommands/RicWellPathExportCompletionDataFeatureImpl.cpp index e1233db185..6c5d5e70d6 100644 --- a/ApplicationCode/Commands/CompletionExportCommands/RicWellPathExportCompletionDataFeatureImpl.cpp +++ b/ApplicationCode/Commands/CompletionExportCommands/RicWellPathExportCompletionDataFeatureImpl.cpp @@ -86,7 +86,7 @@ void RicWellPathExportCompletionDataFeatureImpl::exportCompletions( const std::v const std::vector& simWells, const RicExportCompletionDataSettingsUi& exportSettings ) { - if ( exportSettings.caseToApply() == nullptr ) + if ( exportSettings.caseToApply() == nullptr || exportSettings.caseToApply()->eclipseCaseData() == nullptr ) { RiaLogging::error( "Export Completions Data: Cannot export completions data without specified eclipse case" ); return;