mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Guard null pointer
This commit is contained in:
@@ -2106,6 +2106,7 @@ void populateSummaryCurvesData( std::vector<RimSummaryCurve*> curves, SummaryCur
|
|||||||
if ( !curve->isCurveVisible() ) continue;
|
if ( !curve->isCurveVisible() ) continue;
|
||||||
if ( isObservedCurve && ( curveType & CURVE_TYPE_OBSERVED ) == 0 ) continue;
|
if ( isObservedCurve && ( curveType & CURVE_TYPE_OBSERVED ) == 0 ) continue;
|
||||||
if ( !isObservedCurve && ( curveType & CURVE_TYPE_GRID ) == 0 ) continue;
|
if ( !isObservedCurve && ( curveType & CURVE_TYPE_GRID ) == 0 ) continue;
|
||||||
|
if ( !curve->summaryCaseY() ) continue;
|
||||||
|
|
||||||
QString curveCaseName = curve->summaryCaseY()->displayCaseName();
|
QString curveCaseName = curve->summaryCaseY()->displayCaseName();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user