diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-08-30 10:36:57 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-08-30 10:37:55 -0400 |
commit | 286ce144981aaa426622624302e296588abab1c2 (patch) | |
tree | fcaf613ce90ef628f2624dc1c9f83e437a979b08 /sc | |
parent | 6df97ec93936d088a4bbce1d9a3d34fd10a879d2 (diff) |
fdo#53938: Check for null pointer.
Change-Id: I4beb5e3c071933dce72468ca87faceca079aa50c
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/dpobject.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
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(); |