Guard null pointer access

This commit is contained in:
Magne Sjaastad 2023-03-06 15:57:20 +01:00
parent c248c9fb57
commit 70c1a2c064

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 )