mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2683 Well CF Visualization: Add missing null pointer test
This commit is contained in:
parent
7156779e3d
commit
f365dae014
@ -308,7 +308,7 @@ void RivSimWellPipesPartMgr::buildWellPipeParts(const caf::DisplayCoordTransform
|
||||
cvf::Vec3d anchor = displayXf->transformToDisplayCoord(defaultLocationInDomainCoord);;
|
||||
|
||||
const RigWellResultPoint* wResCell = wResFrame.findResultCell(wellResultPoint.m_gridIndex, wellResultPoint.m_gridCellIndex);
|
||||
if (wResCell->isValid())
|
||||
if (wResCell && wResCell->isValid())
|
||||
{
|
||||
CompletionVizData data(anchor, defaultWellPathDirection, wResCell->connectionFactor(), globalCellIndex);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user