From a6333128e3afc419c7dfb448119f56954e2e49e6 Mon Sep 17 00:00:00 2001 From: Rebecca Cox Date: Wed, 24 Jan 2018 16:32:48 +0100 Subject: [PATCH] #2328 Fix crash when calculating "Water Flooded PV" --- .../RigNumberOfFloodedPoreVolumesCalculator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,