From 286ce144981aaa426622624302e296588abab1c2 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Thu, 30 Aug 2012 10:36:57 -0400 Subject: fdo#53938: Check for null pointer. Change-Id: I4beb5e3c071933dce72468ca87faceca079aa50c --- sc/source/core/data/dpobject.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sc') diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx index ce9b236f4c92..af6ac2dfc61f 100644 --- a/sc/source/core/data/dpobject.cxx +++ b/sc/source/core/data/dpobject.cxx @@ -870,6 +870,11 @@ void ScDPObject::SyncAllDimensionMembers() return; ScDPTableData* pData = GetTableData(); + if (!pData) + // No table data exists. This can happen when refreshing from an + // external source which doesn't exist. + return; + // Refresh the cache wrapper since the cache may have changed. pData->SetEmptyFlags(pSaveData->GetIgnoreEmptyRows(), pSaveData->GetRepeatIfEmpty()); pData->ReloadCacheTable(); -- cgit