diff --git a/ApplicationCode/UserInterface/RiuSummaryCurveDefSelection.cpp b/ApplicationCode/UserInterface/RiuSummaryCurveDefSelection.cpp index 072593dcca..0bd598935f 100644 --- a/ApplicationCode/UserInterface/RiuSummaryCurveDefSelection.cpp +++ b/ApplicationCode/UserInterface/RiuSummaryCurveDefSelection.cpp @@ -930,8 +930,7 @@ std::set RiuSummaryCurveDefSelection::findPossibleSumm if (currCase) { - RifSummaryReaderInterface* reader = nullptr; - if (currCase) reader = currCase->summaryReader(); + RifSummaryReaderInterface* reader = currCase->summaryReader(); if (reader) allAddresses = reader->allResultAddresses(); } else if (currEnsemble)