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();