mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 15:36:09 -06:00
#2156 Fixed crash when loading project with intersection referencing missing well path file
This commit is contained in:
parent
2a3f82875c
commit
e344fcd47a
@ -395,7 +395,7 @@ std::vector< std::vector <cvf::Vec3d> > RimIntersection::polyLines() const
|
||||
std::vector< std::vector <cvf::Vec3d> > lines;
|
||||
if (type == CS_WELL_PATH)
|
||||
{
|
||||
if (wellPath())
|
||||
if (wellPath() && wellPath->wellPathGeometry() )
|
||||
{
|
||||
lines.push_back(wellPath->wellPathGeometry()->m_wellPathPoints);
|
||||
clipToReservoir(lines[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user