mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
CppCheck : Guard null pointer access
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user