diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2020-12-07 19:26:40 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2020-12-07 20:46:21 +0100 |
commit | 6265cfca9d775198e81166b914f5dcaea58802db (patch) | |
tree | d8fa96ee13ee061b37b08eb2533a516862ae0bfd /sc | |
parent | 90978b99efe65b5edc2ee29d67e6d0ffc7eed3f3 (diff) |
avoid possible nullptr dereference
Regression from cb25771fedd12725a72a1eb4f532698d8221c0f2.
Change-Id: I6e00f43438882b9c96005ce921fbfd419ca634c7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107358
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/documen8.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx index 5c72e9d6198b..1008cdff14f5 100644 --- a/sc/source/core/data/documen8.cxx +++ b/sc/source/core/data/documen8.cxx @@ -423,7 +423,8 @@ void ScDocument::CalculateInColumnInThread( ScInterpreterContext& rContext, cons // If any of the thread_local data would cause problems if they stay around for too long // (and e.g. outlive the ScDocument), clean them up here, they cannot be cleaned up // later from the main thread. - maThreadSpecific.xRecursionHelper->Clear(); + if(maThreadSpecific.xRecursionHelper) + maThreadSpecific.xRecursionHelper->Clear(); } void ScDocument::HandleStuffAfterParallelCalculation( SCCOL nColStart, SCCOL nColEnd, SCROW nRow, size_t nLen, SCTAB nTab, ScInterpreter* pInterpreter ) |