mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-01 03:37:15 -06:00
Guard nullptr
This commit is contained in:
parent
74fa621332
commit
4f9cbe8e97
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user