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

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Jan 20 13:26:11 UTC 2020


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

--- Comment #7 from Xisco Faulí <xiscofauli at libreoffice.org> ---
(In reply to Julien Nabet from comment #5)
> 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)

Hi Julien,
Would you mind to submit a patch to gerrit?

-- 
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/20200120/67bcc086/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list