Guard null pointer access

This commit is contained in:
Magne Sjaastad
2018-06-29 16:41:35 +02:00
parent 451ce82aa9
commit a90755c899

View File

@@ -205,6 +205,8 @@ void RivIntersectionGeometryGenerator::calculateArrays()
{
if (m_triangleVxes->size()) return;
if (m_hexGrid.isNull()) return;
m_extrusionDirection.normalize();
std::vector<cvf::Vec3f> triangleVertices;