| commit | f5f5582fa065000a187a92b47ca44498d1f30c09 | [log] |
|---|---|---|
| author | Mike Kaganski <mike.kaganski@collabora.com> | Sun Feb 14 11:24:42 2021 +0100 |
| committer | Xisco Fauli <xiscofauli@libreoffice.org> | Mon Mar 08 13:55:37 2021 +0100 |
| tree | b3438ea4b33037cd9093b690b4925078ac5e46ea | |
| parent | 6b3558e3c563427f1bdff7193151c57c59041ddb [diff] |
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@collabora.com> (cherry picked from commit 20305894243e24eb383ab9feefebf4a0e9f2644f) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112083 Tested-by: Michael Weghorn <m.weghorn@posteo.de> Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
diff --git a/sc/source/ui/app/seltrans.cxx b/sc/source/ui/app/seltrans.cxx index b725eb7..1931134 100644 --- a/sc/source/ui/app/seltrans.cxx +++ b/sc/source/ui/app/seltrans.cxx
@@ -149,7 +149,7 @@ 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)