pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Lehmkühler (JIRA) <j...@apache.org>
Subject [jira] Resolved: (PDFBOX-519) NullPointerException in SetNonStrokingSeparation.java
Date Sun, 07 Feb 2010 16:02:27 GMT

     [ https://issues.apache.org/jira/browse/PDFBOX-519?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andreas Lehmkühler resolved PDFBOX-519.
---------------------------------------

    Resolution: Fixed

I've added the patch with version 907436. I made some changes to the provided patch. Instead
of throwing an exception a valid colorvalue (black) will be returned.

Set this to resolved.

Thanks to Andrew for his contribution.

> NullPointerException in SetNonStrokingSeparation.java
> -----------------------------------------------------
>
>                 Key: PDFBOX-519
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-519
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 0.8.0-incubator
>            Reporter: Andrew Duffy
>            Priority: Minor
>             Fix For: 1.0.0
>
>         Attachments: Democratic Renewal final.pdf, npe.patch
>
>
> Caused by a failure to check for a null return from PDSeparation.getColorValues()
> java.lang.NullPointerException
>  	at org.apache.pdfbox.util.operator.SetNonStrokingSeparation.process(SetNonStrokingSeparation.java:56)
>  	at org.apache.pdfbox.util.operator.SetStrokingColor.process(SetStrokingColor.java:78)
>  	at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:510)
>  	at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:223)
>  	at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:182)
>  	at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:92)
>  	at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:686)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message