summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-06-30 13:59:57 +0200
committerAndras Timar <andras.timar@collabora.com>2017-07-03 16:13:01 +0200
commit96c2cc411faae6059725dd951d50704ccc8151af (patch)
tree0d59b58407d805bb860f0fca3515e34f4b8a8a4d /sc
parent3196fb8da4849a79352c97560f06a42a6092970c (diff)
pBASM can be nullptr in copy docs, e.g. during insert sheet from doc
Found through http://crashreport.libreoffice.org/stats/crash_details/3bd264ba-ec12-476a-9bb4-e832caca3445 Reviewed-on: https://gerrit.libreoffice.org/39411 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> (cherry picked from commit caf1ddedbef77ac648d8b8b35978a0613aa77da6) Change-Id: I0a4e6dddca61a2538c0fe6bbc51770a9886c464d
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/documen7.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/core/data/documen7.cxx b/sc/source/core/data/documen7.cxx
index 437cf4c815e6..58ce9827f2ca 100644
--- a/sc/source/core/data/documen7.cxx
+++ b/sc/source/core/data/documen7.cxx
@@ -558,6 +558,9 @@ void ScDocument::FinalTrackFormulas( sal_uInt32 nHintId )
*/
void ScDocument::TrackFormulas( sal_uInt32 nHintId )
{
+ if (!pBASM)
+ return;
+
if (pBASM->IsInBulkBroadcast() && !IsFinalTrackFormulas() && nHintId == SC_HINT_DATACHANGED)
{
SetTrackFormulasPending();