From cb1c94630b10f461ebd7351988b6bc1e94f82022 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Mon, 27 Jun 2022 12:02:41 +0200 Subject: [PATCH] Guard null pointer use --- .../Summary/RimSummaryPlotSourceStepping.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryPlotSourceStepping.cpp b/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryPlotSourceStepping.cpp index a9a6d4f0b1..3c4cd5f780 100644 --- a/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryPlotSourceStepping.cpp +++ b/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryPlotSourceStepping.cpp @@ -217,7 +217,10 @@ QList if ( !dataSourceSteppingObject()->curveSets().empty() ) { auto first = dataSourceSteppingObject()->curveSets().front(); - analyzer = first->summaryCaseCollection()->addressAnalyzer(); + if ( first->summaryCaseCollection() ) + { + analyzer = first->summaryCaseCollection()->addressAnalyzer(); + } } if ( !analyzer )