incubator-odf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Schreiber (JIRA)" <>
Subject [jira] [Commented] (ODFTOOLKIT-379) NullPointerException in Paragraph.getTextContent()
Date Wed, 13 Nov 2013 09:15:21 GMT


Marc Schreiber commented on ODFTOOLKIT-379:

I've added the diff as attachment. My fix also contains a fix regarding documnets which have
been created with Libreoffice: getTextContent() returned an empty String if a plain text paragraph
was created by LibreOffice.

I would also recomment to use instanceOf in the if statements (compare line 238 and line 245
after applying the patch).

> NullPointerException in Paragraph.getTextContent()
> --------------------------------------------------
>                 Key: ODFTOOLKIT-379
>                 URL:
>             Project: ODF Toolkit
>          Issue Type: Bug
>          Components: simple api
>    Affects Versions: 0.6.1-incubating
>            Reporter: Marc Schreiber
>         Attachments: Bell.odt, ODFToolkit-379.patch
> The method Paragraph.getTextContent() throws a NullPointerException when a paragraph
contains newlines. 
> See line 239 in

> I have a fix for it and I wrote a test for it. How can I provide it to the project?

This message was sent by Atlassian JIRA

View raw message