You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Hewson (JIRA)" <ji...@apache.org> on 2014/03/08 04:30:42 UTC
[jira] [Commented] (PDFBOX-1969) JPEGFactory bug
[ https://issues.apache.org/jira/browse/PDFBOX-1969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13924695#comment-13924695 ]
John Hewson commented on PDFBOX-1969:
-------------------------------------
There's no unit test for this behaviour so it was inadvertently broken when JPEGFactory was added. I'll fix this and add a unit test so that it doesn't break in the future.
> JPEGFactory bug
> ---------------
>
> Key: PDFBOX-1969
> URL: https://issues.apache.org/jira/browse/PDFBOX-1969
> Project: PDFBox
> Issue Type: Bug
> Reporter: Steven Burg
>
> Attempted to run the RubberStampWithImage sample and received the following errors:
> Exception in thread "main" java.lang.NullPointerException
> at org.apache.pdfbox.pdmodel.graphics.image.JPEGFactory.createFromStream(JPEGFactory.java:72)
> at org.apache.pdfbox.examples.pdmodel.RubberStampWithImage.doIt(RubberStampWithImage.java:93)
> at org.apache.pdfbox.examples.pdmodel.RubberStampWithImage.main(RubberStampWithImage.java:185)
> This happens with any jog I tested with.
--
This message was sent by Atlassian JIRA
(v6.2#6252)