[Libreoffice-commits] core.git: sc/source
Mike Kaganski (via logerrit)
logerrit at kemper.freedesktop.org
Sun Feb 14 11:32:31 UTC 2021
sc/source/ui/app/seltrans.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 20305894243e24eb383ab9feefebf4a0e9f2644f
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Sun Feb 14 11:24:42 2021 +0100
Commit: Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Sun Feb 14 12:31:50 2021 +0100
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>
diff --git a/sc/source/ui/app/seltrans.cxx b/sc/source/ui/app/seltrans.cxx
index b725eb7d3c52..193113429fb8 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