[ 
https://issues.apache.org/jira/browse/ODFTOOLKIT-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13821090#comment-13821090
 ] 

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: https://issues.apache.org/jira/browse/ODFTOOLKIT-379
>             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 
> http://svn.apache.org/viewvc/incubator/odf/tags/odftoolkit-0.6.1-incubating-RC3/simple/src/main/java/org/odftoolkit/simple/text/Paragraph.java?view=markup
>  
> 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
(v6.1#6144)

Reply via email to