summaryrefslogtreecommitdiff
path: root/sc/source/core/data/dptabsrc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/data/dptabsrc.cxx')
-rw-r--r--sc/source/core/data/dptabsrc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/dptabsrc.cxx b/sc/source/core/data/dptabsrc.cxx
index 039fa5897fc6..542d9911871f 100644
--- a/sc/source/core/data/dptabsrc.cxx
+++ b/sc/source/core/data/dptabsrc.cxx
@@ -2578,7 +2578,7 @@ bool ScDPMember::IsNamedItem(SCROW nIndex) const
nHier, nLev );
// fValue is converted from integer, so simple comparison works
const ScDPItemData* pData2 = GetItemData();
- return pData && nComp == pData2->GetValue();
+ return pData2 && nComp == pData2->GetValue();
}
}