mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-24 22:27:55 -05:00
Guard null pointer access
This commit is contained in:
1 parent
15d727aca7
commit
379276ae06
1 file changed
+4
-1
@@ -200,7 +200,10 @@ bool RicWellPathPickEventHandler::handle3dPickEvent( const Ric3dPickEvent& event
|
||||
|
||||
if ( auto intersectionView = dynamic_cast<Rim2dIntersectionView*>( rimView ) )
|
||||
{
|
||||
pickedPositionInUTM = intersectionView->transformToUtm( pickedPositionInUTM );
|
||||
if ( intersectionView->flatIntersectionPartMgr() )
|
||||
{
|
||||
pickedPositionInUTM = intersectionView->transformToUtm( pickedPositionInUTM );
|
||||
}
|
||||
}
|
||||
|
||||
double measuredDepth = wellPathSourceInfo->measuredDepth( wellPathTriangleIndex, pickedPositionInUTM );
|
||||
|
||||
Reference in new issue
Block a user