Guard nullptr

This commit is contained in:
jonjenssen 2023-03-10 13:37:56 +01:00 committed by jonjenssen
parent 74fa621332
commit 4f9cbe8e97

View File

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