CppCheck : Guard null pointer access

This commit is contained in:
Magne Sjaastad 2018-12-21 12:31:42 +01:00
parent d2431a40a9
commit be77e4e048

View File

@ -281,8 +281,11 @@ void RimWellAllocationPlot::updateFromWell()
wfCalculator->tracerFlowPrPseudoLength(tracerName, brIdx));
}
addStackedCurve(tracerName, depthValues, *accFlow, plotTrack);
//TODO: THIs is the data to be plotted...
if (accFlow)
{
addStackedCurve(tracerName, depthValues, *accFlow, plotTrack);
// TODO: THIs is the data to be plotted...
}
}
}