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>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user