sc/source/ui/app/seltrans.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit ef41f5d2106b68544a078bfac85018e37cab90d1 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Sun Feb 14 11:24:42 2021 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Mon Mar 8 13:57:28 2021 +0100 tdf#140700 nullptr dereference Change-Id: I6a2ffddfd67784ddc2194dafba7d3eaeb6e4e12e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110854 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> (cherry picked from commit 20305894243e24eb383ab9feefebf4a0e9f2644f) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112084 Tested-by: Michael Weghorn <m.wegh...@posteo.de> Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sc/source/ui/app/seltrans.cxx b/sc/source/ui/app/seltrans.cxx index 1757b64749bd..d16f9b7a49fd 100644 --- a/sc/source/ui/app/seltrans.cxx +++ b/sc/source/ui/app/seltrans.cxx @@ -149,7 +149,7 @@ ScSelectionTransferObj::ScSelectionTransferObj( ScTabView* pSource, ScSelectionT ScSelectionTransferObj::~ScSelectionTransferObj() { ScModule* pScMod = SC_MOD(); - if ( pScMod->GetSelectionTransfer() == this ) + if (pScMod && pScMod->GetSelectionTransfer() == this) { // this is reached when the object wasn't really copied to the selection // (CopyToSelection has no effect under Windows) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits