diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-12-16 11:13:36 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-12-16 13:49:51 +0100 |
commit | ee8731c8c38451326027f5ee270f8187cb4cd34d (patch) | |
tree | 0adf3c475ce429c9942e3e86a53b2bf90baad80d /sc | |
parent | 3697982bcb8bf956f6d3345daa6fd0fbf582bd49 (diff) |
crashtesting: null deref on export to ods
of EDRM_Data-Set_File-Formats_1-0/data-set/dbs/PICTURES.DBF
Change-Id: Id501c1fe24aa42d25974cee7d35693f8d221d067
Reviewed-on: https://gerrit.libreoffice.org/85208
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/formulacell.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx index 5bb89a1ff421..c39b21341bd5 100644 --- a/sc/source/core/data/formulacell.cxx +++ b/sc/source/core/data/formulacell.cxx @@ -1036,7 +1036,7 @@ OUString ScFormulaCell::GetFormula( sc::CompileFormulaContext& rCxt, const ScInt OUStringBuffer aBuf; if (pCode->GetCodeError() != FormulaError::NONE && !pCode->GetLen()) { - ScTokenArray aCode(pContext->mpDoc); + ScTokenArray aCode(rCxt.getDoc()); aCode.AddToken( FormulaErrorToken( pCode->GetCodeError())); ScCompiler aComp(rCxt, aPos, aCode, false, false, pContext); aComp.CreateStringFromTokenArray(aBuf); |