[Libreoffice-commits] core.git: Branch 'libreoffice-7-1' - sc/source

Mike Kaganski (via logerrit) logerrit at kemper.freedesktop.org
Mon Mar 8 12:56:12 UTC 2021


 sc/source/ui/app/seltrans.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f5f5582fa065000a187a92b47ca44498d1f30c09
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Sun Feb 14 11:24:42 2021 +0100
Commit:     Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Mon Mar 8 13:55:37 2021 +0100

    tdf#140700 nullptr dereference
    
    Change-Id: I6a2ffddfd67784ddc2194dafba7d3eaeb6e4e12e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110854
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
    (cherry picked from commit 20305894243e24eb383ab9feefebf4a0e9f2644f)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112083
    Tested-by: Michael Weghorn <m.weghorn at posteo.de>
    Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>

diff --git a/sc/source/ui/app/seltrans.cxx b/sc/source/ui/app/seltrans.cxx
index b725eb7d3c52..193113429fb8 100644
--- a/sc/source/ui/app/seltrans.cxx
+++ b/sc/source/ui/app/seltrans.cxx
@@ -149,7 +149,7 @@ ScSelectionTransferObj::ScSelectionTransferObj( ScTabView* pSource, ScSelectionT
 ScSelectionTransferObj::~ScSelectionTransferObj()
 {
     ScModule* pScMod = SC_MOD();
-    if ( pScMod->GetSelectionTransfer() == this )
+    if (pScMod && pScMod->GetSelectionTransfer() == this)
     {
         //  this is reached when the object wasn't really copied to the selection
         //  (CopyToSelection has no effect under Windows)


More information about the Libreoffice-commits mailing list