summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-06-30 13:59:57 +0200
committerEike Rathke <erack@redhat.com>2017-07-03 11:39:44 +0200
commit448024d6b63b45e5c5f403ed2e909059ddcb09bd (patch)
treec8644d6116468da39851d890d617ca6ff974cdf7
parent6bca9229f832306d3b5dbb571185adc005035ff1 (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 Change-Id: I0a4e6dddca61a2538c0fe6bbc51770a9886c464d 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) Reviewed-on: https://gerrit.libreoffice.org/39423 Reviewed-by: Eike Rathke <erack@redhat.com>
-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 1dc49fd5b2e7..8ab7e6014266 100644
--- a/sc/source/core/data/documen7.cxx
+++ b/sc/source/core/data/documen7.cxx
@@ -556,6 +556,9 @@ void ScDocument::FinalTrackFormulas( SfxHintId nHintId )
*/
void ScDocument::TrackFormulas( SfxHintId nHintId )
{
+ if (!pBASM)
+ return;
+
if (pBASM->IsInBulkBroadcast() && !IsFinalTrackFormulas() && nHintId == SfxHintId::ScDataChanged)
{
SetTrackFormulasPending();