sc/source/ui/docshell/externalrefmgr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit ba2be3187e59758ed31ceeb522f58d5796bcb97c Author: Caolán McNamara <[email protected]> AuthorDate: Mon Dec 16 10:48:11 2019 +0000 Commit: Caolán McNamara <[email protected]> CommitDate: Mon Dec 16 13:50:29 2019 +0100 crashtesting: null deref on load of tdf113898-2.ods Change-Id: Ie6e00af220d1ee65c363224abcf63ece2e7bff6f Reviewed-on: https://gerrit.libreoffice.org/85206 Reviewed-by: Noel Grandin <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Caolán McNamara <[email protected]> diff --git a/sc/source/ui/docshell/externalrefmgr.cxx b/sc/source/ui/docshell/externalrefmgr.cxx index 577823b3b0a2..56273f1b6c99 100644 --- a/sc/source/ui/docshell/externalrefmgr.cxx +++ b/sc/source/ui/docshell/externalrefmgr.cxx @@ -2004,7 +2004,7 @@ ScExternalRefCache::TokenArrayRef ScExternalRefManager::getDoubleRefTokens( if (!pSrcDoc) { // Source document is not reachable. Throw a reference error. - pArray.reset(new ScTokenArray(pSrcDoc)); + pArray.reset(new ScTokenArray(maRefCache.getFakeDoc())); pArray->AddToken(FormulaErrorToken(FormulaError::NoRef)); return pArray; } _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
