sc/source/ui/app/transobj.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 153a85bed5006712771c7141782e726fffa04748 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Fri Aug 25 12:42:02 2023 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Fri Sep 1 10:11:19 2023 +0200 sc: fix crash in ScTransferObj::DragFinished See https://crashreport.libreoffice.org/stats/signature/ScModule::GetDragData() Change-Id: Ic5cdc3e1796fa20ac84150a04bed539bc9ca7321 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156094 Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> (cherry picked from commit 8b022db4cd397fd88f8078fc7f5ff85f21635155) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156005 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sc/source/ui/app/transobj.cxx b/sc/source/ui/app/transobj.cxx index f19bf94a4ff1..6a1ef6a04650 100644 --- a/sc/source/ui/app/transobj.cxx +++ b/sc/source/ui/app/transobj.cxx @@ -566,7 +566,7 @@ void ScTransferObj::DragFinished( sal_Int8 nDropAction ) } ScModule* pScMod = SC_MOD(); - if ( pScMod->GetDragData().pCellTransfer == this ) + if ( pScMod && pScMod->GetDragData().pCellTransfer == this ) pScMod->ResetDragObject(); m_xDragSourceRanges = nullptr; // don't keep source after dropping