Guard nullptr

This commit is contained in:
jonjenssen
2023-03-10 13:37:56 +01:00
committed by Magne Sjaastad
parent 9a714527a6
commit bb3053af79

View File

@@ -728,7 +728,7 @@ void RimWellLogRftCurve::onLoadDataAndUpdate( bool updateParentPlot )
RimWellPath* wellPath = proj->wellPathByName( m_wellName );
double rkbDiff = 0.0;
if ( wellPath )
if ( wellPath && wellPath->wellPathGeometry() )
{
rkbDiff = wellPath->wellPathGeometry()->rkbDiff();
}