CppCheck : Guard null pointer access

This commit is contained in:
Magne Sjaastad
2018-08-06 08:22:05 +02:00
parent 3aaadde5c0
commit 411ef54364

View File

@@ -930,8 +930,7 @@ std::set<RifEclipseSummaryAddress> RiuSummaryCurveDefSelection::findPossibleSumm
if (currCase)
{
RifSummaryReaderInterface* reader = nullptr;
if (currCase) reader = currCase->summaryReader();
RifSummaryReaderInterface* reader = currCase->summaryReader();
if (reader) allAddresses = reader->allResultAddresses();
}
else if (currEnsemble)