You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2012/10/12 13:53:03 UTC

[jira] [Commented] (TIKA-1006) NPE in extractParagraph (styleClass) in XWPFWordExtractorDecorator

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

Michael McCandless commented on TIKA-1006:
------------------------------------------

Thanks Sture, that patch looks good!

Do you have an example .docx showing the issue?  Would be nice to commit a test case along with the bug fix ...
                
> NPE in extractParagraph (styleClass) in XWPFWordExtractorDecorator
> ------------------------------------------------------------------
>
>                 Key: TIKA-1006
>                 URL: https://issues.apache.org/jira/browse/TIKA-1006
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 1.2
>            Reporter: Sture Svensson
>            Assignee: Michael McCandless
>            Priority: Minor
>         Attachments: fix.patch
>
>
> The following line 
> TagAndStyle tas = WordExtractor.buildParagraphTagAndStyle(style.getName(),paragraph.getPartType() == BodyType.TABLECELL);
> Throws an NPE if style is null. This should be checked, patch is attatched

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira