mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Guard null pointer access
This commit is contained in:
parent
c248c9fb57
commit
70c1a2c064
@ -55,6 +55,8 @@ QString RimWellLogCurveInfoTextProvider::additionalText( RiuPlotCurve* curve, in
|
||||
auto annotationCurves = sourceCurve->additionalDataSources();
|
||||
for ( auto annotationCurve : annotationCurves )
|
||||
{
|
||||
if ( !annotationCurve ) continue;
|
||||
|
||||
RimDepthTrackPlot* depthTrackPlot = nullptr;
|
||||
annotationCurve->firstAncestorOfType( depthTrackPlot );
|
||||
if ( depthTrackPlot )
|
||||
|
Loading…
Reference in New Issue
Block a user