[Libreoffice-commits] core.git: Branch 'libreoffice-5-3' - sc/source

Markus Mohrhard markus.mohrhard at googlemail.com
Mon Jul 3 09:39:56 UTC 2017


 sc/source/core/data/documen7.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 6c60005326c4a84a91f6fc6de864a66e5e42b310
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Fri Jun 30 13:59:57 2017 +0200

    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 at libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Reviewed-on: https://gerrit.libreoffice.org/39426
    Reviewed-by: Eike Rathke <erack at redhat.com>

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();


More information about the Libreoffice-commits mailing list