#2328 Fix crash when calculating "Water Flooded PV"

This commit is contained in:
Rebecca Cox 2018-01-24 16:32:48 +01:00
parent d3f1767ff9
commit a6333128e3

View File

@ -236,7 +236,7 @@ void RigNumberOfFloodedPoreVolumesCalculator::calculate(RigMainGrid* mainGrid,
const std::vector<double>* flowrateNNC = flowrateNNCatAllTimeSteps[timeStep-1];
if (flowrateNNC->size() > 0)
if (flowrateNNC && flowrateNNC->size() > 0)
{
distributeNNCflow(connections,
caseToApply,