mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Guard nullpointer access
This commit is contained in:
parent
d28a426062
commit
7f400f806d
@ -86,7 +86,7 @@ void RicWellPathExportCompletionDataFeatureImpl::exportCompletions( const std::v
|
||||
const std::vector<RimSimWellInView*>& 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;
|
||||
|
Loading…
Reference in New Issue
Block a user