summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-03-22 16:34:34 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-03-23 09:45:11 +0100
commitad37c9a2a832c494b98ce7cf39400ddaa4ffdda1 (patch)
treeb4db4e67a45cdc5a673382e7a26ab463e26596d9
parenta9493229bb453a8f437c45d838777e2ba8217b76 (diff)
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@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sc/source/ui/app/drwtrans.cxx2
1 files changed, 1 insertions, 1 deletions
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();