#2156 Fixed crash when loading project with intersection referencing missing well path file

This commit is contained in:
Jacob Støren 2017-12-05 14:03:40 +01:00
parent 2a3f82875c
commit e344fcd47a

View File

@ -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]);