Guard nullptr

This commit is contained in:
jonjenssen authored and jonjenssen committed 2023-03-10 14:07:51 +01:00
1 parent 74fa621332
commit 4f9cbe8e97
1 file changed
+1 -1
@@ -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();
}