Extractor: Fix crash when well path does not intersect any cells

This commit is contained in:
Rebecca Cox
2017-11-01 10:21:36 +01:00
parent 35d9935f88
commit 80ee785e5e

View File

@@ -44,6 +44,7 @@ RigWellLogExtractor::~RigWellLogExtractor()
std::vector<CellIntersectionInfo> RigWellLogExtractor::intersectionInfo() const
{
std::vector<CellIntersectionInfo> infoVector;
if (m_intersectedCellsGlobIdx.empty()) return infoVector;
for (size_t i = 0; i < m_intersectedCellsGlobIdx.size() - 1; i=i+2)
{