diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-06-15 14:51:48 +0100 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-06-16 11:15:40 +0200 |
commit | 8718d243edc9400b0e0131b096702af8d33df327 (patch) | |
tree | 013a6d593a6ed34e2f6213d4bd9cceba6f7957a9 /sc | |
parent | 9397ba775d177b199e2437b7fd7bb8692eb80a4c (diff) |
rhbz#1847031 null-deref
Change-Id: Ic9327788ebf49ac1ab0d3463f2f1e4d87ef14cb3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96339
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
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 88f80d77f272..2730ec0c1f93 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(); |