mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Guard null pointer access
This commit is contained in:
committed by
Gaute Lindkvist
parent
9041bc80fa
commit
5a561054bf
@@ -199,9 +199,12 @@ bool RicWellPathPickEventHandler::handle3dPickEvent( const Ric3dPickEvent& event
|
||||
transForm->transformToDomainCoord( eventObject.m_pickItemInfos.front().globalPickedPoint() );
|
||||
|
||||
if ( auto intersectionView = dynamic_cast<Rim2dIntersectionView*>( rimView ) )
|
||||
{
|
||||
if ( intersectionView->flatIntersectionPartMgr() )
|
||||
{
|
||||
pickedPositionInUTM = intersectionView->transformToUtm( pickedPositionInUTM );
|
||||
}
|
||||
}
|
||||
|
||||
double measuredDepth = wellPathSourceInfo->measuredDepth( wellPathTriangleIndex, pickedPositionInUTM );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user