summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-02-14 11:24:42 +0100
committerMike Kaganski <mike.kaganski@collabora.com>2021-02-14 12:31:50 +0100
commit20305894243e24eb383ab9feefebf4a0e9f2644f (patch)
treebbc9f5e9c74ab17d6f0bc89f5cc1820c967b7bac /sc
parentdcce840cb2383873cc77da04b0bdc4526042c212 (diff)
nullptr dereference
Change-Id: I6a2ffddfd67784ddc2194dafba7d3eaeb6e4e12e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110854 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/app/seltrans.cxx2
1 files changed, 1 insertions, 1 deletions
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)