[Libreoffice-commits] core.git: sc/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue Mar 23 08:45:53 UTC 2021


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

New commits:
commit ad37c9a2a832c494b98ce7cf39400ddaa4ffdda1
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Mar 22 16:34:34 2021 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Mar 23 09:45:11 2021 +0100

    check for null SC_MOD given crashes at exit in similar cases
    
    Change-Id: I3fa358278028ae8ab387382528d24da1986164da
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112923
    Tested-by: Caolán McNamara <caolanm at redhat.com>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sc/source/ui/app/drwtrans.cxx b/sc/source/ui/app/drwtrans.cxx
index e76b0e783734..5314f059e1f5 100644
--- a/sc/source/ui/app/drwtrans.cxx
+++ b/sc/source/ui/app/drwtrans.cxx
@@ -211,7 +211,7 @@ ScDrawTransferObj::~ScDrawTransferObj()
     SolarMutexGuard aSolarGuard;
 
     ScModule* pScMod = SC_MOD();
-    if ( pScMod->GetDragData().pDrawTransfer == this )
+    if (pScMod && pScMod->GetDragData().pDrawTransfer == this)
     {
         OSL_FAIL("ScDrawTransferObj wasn't released");
         pScMod->ResetDragObject();


More information about the Libreoffice-commits mailing list