diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-02-21 10:32:20 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-02-21 10:33:25 -0500 |
commit | 5b7fcb124dd56eae4ba130db553e8673e0d2e991 (patch) | |
tree | ab318dadbfd29af1340f653e45f7bf3dc075b1c4 /sc/source/ui/docshell | |
parent | f95cacd805f5571b11696a52d8606e6bf5adb0a1 (diff) |
Fixed a crasher when retrieving an external value from in-memory doc.
Diffstat (limited to 'sc/source/ui/docshell')
-rw-r--r-- | sc/source/ui/docshell/externalrefmgr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/externalrefmgr.cxx b/sc/source/ui/docshell/externalrefmgr.cxx index 3483895fe2ab..bb5b4d762da2 100644 --- a/sc/source/ui/docshell/externalrefmgr.cxx +++ b/sc/source/ui/docshell/externalrefmgr.cxx @@ -1636,7 +1636,7 @@ ScExternalRefCache::TokenRef ScExternalRefManager::getSingleRefToken( // Now, insert the token into cache table but don't cache empty cells. if (pToken->GetType() != formula::svEmptyCell) { - sal_uInt32 nFmtIndex = pFmt->mbIsSet ? pFmt->mnIndex : 0; + sal_uInt32 nFmtIndex = (pFmt && pFmt->mbIsSet) ? pFmt->mnIndex : 0; maRefCache.setCellData(nFileId, rTabName, rCell.Col(), rCell.Row(), pToken, nFmtIndex); } |