diff --git a/ApplicationCode/ReservoirDataModel/RigNumberOfFloodedPoreVolumesCalculator.cpp b/ApplicationCode/ReservoirDataModel/RigNumberOfFloodedPoreVolumesCalculator.cpp index 065270c68c..09f43e0821 100644 --- a/ApplicationCode/ReservoirDataModel/RigNumberOfFloodedPoreVolumesCalculator.cpp +++ b/ApplicationCode/ReservoirDataModel/RigNumberOfFloodedPoreVolumesCalculator.cpp @@ -236,7 +236,7 @@ void RigNumberOfFloodedPoreVolumesCalculator::calculate(RigMainGrid* mainGrid, const std::vector* flowrateNNC = flowrateNNCatAllTimeSteps[timeStep-1]; - if (flowrateNNC->size() > 0) + if (flowrateNNC && flowrateNNC->size() > 0) { distributeNNCflow(connections, caseToApply,