diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-06-15 14:51:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-06-15 17:57:30 +0200 |
commit | 779b9823dcff7ecfe6a1f4c5bb75cbecec947b69 (patch) | |
tree | a2bee0611721e46f5dd1bf2e4201cd1760aee6d3 /sc | |
parent | fbd62e247fd588a595e44cec787fc8944f158777 (diff) |
rhbz#1847031 null-deref
Change-Id: Ic9327788ebf49ac1ab0d3463f2f1e4d87ef14cb3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96338
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/app/transobj.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/app/transobj.cxx b/sc/source/ui/app/transobj.cxx index 912f956f930f..5a81a24a1fa4 100644 --- a/sc/source/ui/app/transobj.cxx +++ b/sc/source/ui/app/transobj.cxx @@ -179,7 +179,7 @@ ScTransferObj::~ScTransferObj() SolarMutexGuard aSolarGuard; ScModule* pScMod = SC_MOD(); - if ( pScMod->GetDragData().pCellTransfer == this ) + if (pScMod && pScMod->GetDragData().pCellTransfer == this) { OSL_FAIL("ScTransferObj wasn't released"); pScMod->ResetDragObject(); |