#1257 Added null pointer guarding based on reports from CppCheck

This commit is contained in:
Magne Sjaastad
2017-02-24 16:00:56 +01:00
parent 85228ee39c
commit a29f6abc32
14 changed files with 81 additions and 50 deletions

View File

@@ -311,6 +311,7 @@ void RimSummaryTimeAxisProperties::fieldChangedByUi(const caf::PdmFieldHandle* c
{
RimSummaryPlot* rimSummaryPlot = nullptr;
this->firstAncestorOrThisOfType(rimSummaryPlot);
if (!rimSummaryPlot) return;
if (changedField == &m_visibleDateRangeMax)
{