sc/source/ui/app/transobj.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit b00ebfb4f0803ef276f452e17d9e99f2229ef32f Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Fri Aug 25 12:42:02 2023 +0200 Commit: Christian Lohmaier <lohmaier+libreoff...@googlemail.com> CommitDate: Wed Aug 30 15:50:10 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/+/156006 Tested-by: Jenkins Reviewed-by: Christian Lohmaier <lohmaier+libreoff...@googlemail.com> diff --git a/sc/source/ui/app/transobj.cxx b/sc/source/ui/app/transobj.cxx index a81e4149956e..9f6729d46a43 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