mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 17:02:13 -05:00
CppCheck : Guard null pointer access
This commit is contained in:
1 parent
3aaadde5c0
commit
411ef54364
1 file changed
+1
-2
@@ -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