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

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

Sture Svensson created TIKA-1006:
------------------------------------

             Summary: NPE in extractParagraph (styleClass) in 
                 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
            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

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

Posted by "Sture Svensson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TIKA-1006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sture Svensson updated TIKA-1006:
---------------------------------

    Attachment: fix.patch

Add check for null
                
> NPE in extractParagraph (styleClass) in 
> ----------------------------------------
>
>                 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
>            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

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

Posted by "Sture Svensson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TIKA-1006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13474961#comment-13474961 ] 

Sture Svensson commented on TIKA-1006:
--------------------------------------

I have added a simple example of when we get this error.
                
> 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: example.docx, 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

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

Posted by "Sture Svensson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TIKA-1006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sture Svensson updated TIKA-1006:
---------------------------------

    Comment: was deleted

(was: Add check for null)
    
> 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
>            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

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

Posted by "Sture Svensson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TIKA-1006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sture Svensson updated TIKA-1006:
---------------------------------

    Summary: NPE in extractParagraph (styleClass) in XWPFWordExtractorDecorator  (was: NPE in extractParagraph (styleClass) in )
    
> 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
>            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

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

Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TIKA-1006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael McCandless reassigned TIKA-1006:
----------------------------------------

    Assignee: Michael McCandless
    
> 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

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

Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TIKA-1006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael McCandless resolved TIKA-1006.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3

Thanks Sture, I just committed the test document & 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
>             Fix For: 1.3
>
>         Attachments: example.docx, 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

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

Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
    [ 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

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

Posted by "Sture Svensson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TIKA-1006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sture Svensson updated TIKA-1006:
---------------------------------

    Attachment: example.docx
    
> 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: example.docx, 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