[Libreoffice-bugs] [Bug 117159] REPORTBUILDER - Trying to edit chart leads to crash of whole LO

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Aug 31 12:29:44 UTC 2021


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

--- Comment #12 from Mike Kaganski <mikekaganski at hotmail.com> ---
The problem is that chart::InternalDataProvider does not implement
css::beans::XPropertySet, which makes PropertyHandler::inspect (called from
DataProviderHandler::inspect) to assign nullptr to the m_xComponent, and then
dereferencing it inside DataProviderHandler::getPropertyValue segfaults.

The code in FormComponentPropertyHandler methods (e.g.,
impl_getPropertyValue_throw) seems to dereference m_xComponent unconditionally
- that seems odd. But I have no idea which should be the fix - if the interface
is needed (and then it should throw when the interface is null) or the
dereference should be guarded by checks (because it may be null for a good
reason) (and I am not working on this - just placing it here for whoever has
the idea).

-- 
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/20210831/f5303c3a/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list