sc/source/ui/view/tabvwshf.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 98d825fbfecd3f63bf40b2e6d799f1ba4e43d0af
Author: Julien Nabet <serval2...@yahoo.fr>
Date:   Sun Jan 14 10:20:09 2018 +0100

    tdf#114992: fix crash in deleting sheet
    
    See bt:
    https://bugs.documentfoundation.org/attachment.cgi?id=139087
    
    Change-Id: Iee72385a8e5400436da72fe5e18b8cdfccad193d
    Reviewed-on: https://gerrit.libreoffice.org/47850
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrh...@googlemail.com>
    (cherry picked from commit 1d71f886d6760e5b3eeb4a0f9aaaead0816a45aa)
    Reviewed-on: https://gerrit.libreoffice.org/47859
    Reviewed-by: Eike Rathke <er...@redhat.com>

diff --git a/sc/source/ui/view/tabvwshf.cxx b/sc/source/ui/view/tabvwshf.cxx
index 3cbe8c83aa8f..f315b6cbe89f 100644
--- a/sc/source/ui/view/tabvwshf.cxx
+++ b/sc/source/ui/view/tabvwshf.cxx
@@ -612,7 +612,7 @@ void ScTabViewShell::ExecuteTable( SfxRequest& rReq )
                                 {
                                     const ScDPObject& rDPObj = (*pDPs)[i];
                                     const ScSheetSourceDesc* pSheetSourceDesc 
= rDPObj.GetSheetDesc();
-                                    if 
(pSheetSourceDesc->GetSourceRange().aStart.Tab() == nSelTab)
+                                    if (pSheetSourceDesc && 
pSheetSourceDesc->GetSourceRange().aStart.Tab() == nSelTab)
                                         bTabWithPivotTable = true;
                                 }
                             }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to