[Libreoffice-commits] core.git: sc/source

Julien Nabet (via logerrit) logerrit at kemper.freedesktop.org
Tue May 12 08:22:50 UTC 2020


 sc/source/ui/unoobj/cellsuno.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 3466488ef22752c8f6f47f7b8f1dac5cc0cb27a2
Author:     Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Mon May 11 13:03:24 2020 +0200
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Tue May 12 10:22:11 2020 +0200

    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 at yahoo.fr>

diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx
index 8a81f814a7e6..856736b275b1 100644
--- a/sc/source/ui/unoobj/cellsuno.cxx
+++ b/sc/source/ui/unoobj/cellsuno.cxx
@@ -5411,6 +5411,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:


More information about the Libreoffice-commits mailing list