[Libreoffice-commits] core.git: Branch 'libreoffice-7-0' - sc/source
Mike Kaganski (via logerrit)
logerrit at kemper.freedesktop.org
Mon Mar 8 12:58:03 UTC 2021
sc/source/ui/app/seltrans.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit ef41f5d2106b68544a078bfac85018e37cab90d1
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Sun Feb 14 11:24:42 2021 +0100
Commit: Xisco Fauli <xiscofauli at 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.kaganski at collabora.com>
(cherry picked from commit 20305894243e24eb383ab9feefebf4a0e9f2644f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112084
Tested-by: Michael Weghorn <m.weghorn at posteo.de>
Reviewed-by: Xisco Fauli <xiscofauli at 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)
More information about the Libreoffice-commits
mailing list