Guard null pointer access

This commit is contained in:
Magne Sjaastad
2023-03-06 15:57:20 +01:00
parent 415a119f41
commit 0f55306d9d

View File

@@ -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 )