Fix for null pointer

This commit is contained in:
Magne Sjaastad 2013-12-17 11:40:06 +01:00
parent b53e21a61d
commit f6510210b0

View File

@ -313,7 +313,7 @@ void RigMainGrid::calculateFaults()
// Distribute nnc's to the faults
const std::vector<RigConnection>& nncs = m_nncData->connections();
const std::vector<RigConnection>& nncs = this->nncData()->connections();
for (size_t nncIdx = 0; nncIdx < nncs.size(); ++nncIdx)
{
// Find the fault for each side of the nnc