https://bugs.documentfoundation.org/show_bug.cgi?id=155822
Bug ID: 155822
Summary: Method findAll() of com.sun.star.util.XSearchable may
return NULL though specified to return XIndexAccess
container.
Product: LibreOffice
Version: 3.3.0 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: BASIC
Assignee: [email protected]
Reporter: [email protected]
Created attachment 187895
--> https://bugs.documentfoundation.org/attachment.cgi?id=187895&action=edit
The announced demo
XIndexAccess containers can well be empty. The .Count property then is 0.
The result of a .findAll() with XSearchable is one of the cases where a result
of type XIndexAccess is specified, but NO such result is returned if nothing
was found. Instead of setting .Count to 0, in this case the NULL object is
returned.
It may factually be impossible to fix the bug because old running code would be
broken this way. However, the API documentation should give a related hint, and
list the cases where a NULL ob ject will be returned, while a XIndexAccess
object should be expected.
Thare is a demonstrating example attched.
--
You are receiving this mail because:
You are the assignee for the bug.