summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2020-05-11 13:03:24 +0200
committerEike Rathke <erack@redhat.com>2020-05-12 19:54:54 +0200
commit71c9aea35edcb82cbd27c50ae4fcd01e4a72b81d (patch)
treecddc41518cf60f88ebb656b088639c9de33c0817 /sc
parent67828d1153318802e04d3ba82bdee7b355814e8e (diff)
tdf#132939: avoid crash when uninitialized FilterDescriptor
See bt: https://bugs.documentfoundation.org/attachment.cgi?id=160656 Change-Id: Ifacce7d39878e1b1d119aa878e7280eb3c9c2228 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93959 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr> (cherry picked from commit 3466488ef22752c8f6f47f7b8f1dac5cc0cb27a2) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93989 Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/unoobj/cellsuno.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx
index 0f3bf54e3765..c6b8ef1e01d0 100644
--- a/sc/source/ui/unoobj/cellsuno.cxx
+++ b/sc/source/ui/unoobj/cellsuno.cxx
@@ -5406,6 +5406,8 @@ void SAL_CALL ScCellRangeObj::filter( const uno::Reference<sheet::XSheetFilterDe
{
SolarMutexGuard aGuard;
+ if (!xDescriptor.is()) return;
+
// This could be theoretically an unknown object, so only use the
// public XSheetFilterDescriptor interface to copy the data into a
// ScFilterDescriptor object: