[Libreoffice-bugs] [Bug 129412] Crash when registered data source is not available.

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Dec 15 18:22:28 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=129412

Julien Nabet <serval2412 at yahoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |erack at redhat.com
           Keywords|                            |haveBacktrace

--- Comment #5 from Julien Nabet <serval2412 at yahoo.fr> ---
Eike:
this patch prevents from asserting:
diff --git a/sc/source/ui/unoobj/PivotTableDataProvider.cxx
b/sc/source/ui/unoobj/PivotTableDataProvider.cxx
index fa77cd0f133a..d7979cda8cbe 100644
--- a/sc/source/ui/unoobj/PivotTableDataProvider.cxx
+++ b/sc/source/ui/unoobj/PivotTableDataProvider.cxx
@@ -285,6 +285,8 @@ void PivotTableDataProvider::collectPivotTableData()
     m_aFieldOutputDescriptionMap.clear();

     uno::Reference<sheet::XDataPilotResults>
xDPResults(pDPObject->GetSource(), uno::UNO_QUERY);
+    if (!xDPResults.is())
+        return;
     const uno::Sequence<uno::Sequence<sheet::DataResult>> xDataResultsSequence
= xDPResults->getResults();

     double fNan;

however, it opens Chart dialog and at the end, chart is empty (as expected).
Any thoughts about a better solution than this naive patch?
(part of bt in my previous comment)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20191215/6579011a/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list