You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/07/29 18:49:05 UTC
[jira] [Commented] (PDFBOX-2909) NullPointerException when
rendering shading with no function
[ https://issues.apache.org/jira/browse/PDFBOX-2909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14646392#comment-14646392 ]
ASF subversion and git services commented on PDFBOX-2909:
---------------------------------------------------------
Commit 1693316 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1693316 ]
PDFBOX-2909: throw IOException if /Function element not dictionary or array
> NullPointerException when rendering shading with no function
> ------------------------------------------------------------
>
> Key: PDFBOX-2909
> URL: https://issues.apache.org/jira/browse/PDFBOX-2909
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Priority: Minor
>
> {code}
> Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
> at org.apache.pdfbox.pdmodel.graphics.shading.PDShading.getFunctionsArray(PDShading.java:354)
> at org.apache.pdfbox.pdmodel.graphics.shading.PDShading.evalFunction(PDShading.java:386)
> at org.apache.pdfbox.pdmodel.graphics.shading.PDShading.evalFunction(PDShading.java:374)
> at org.apache.pdfbox.pdmodel.graphics.shading.AxialShadingContext.calcColorTable(AxialShadingContext.java:151)
> at org.apache.pdfbox.pdmodel.graphics.shading.AxialShadingContext.<init>(AxialShadingContext.java:128)
> at org.apache.pdfbox.pdmodel.graphics.shading.AxialShadingPaint.createContext(AxialShadingPaint.java:67)
> {code}
> Found at https://github.com/mozilla/pdf.js/issues/5509 . The cause of the bug is that we're not throwing an exception for a missing function. Fun fact: Adobe Reader isn't able to display the file correctly, the contents of the yellow box are missing.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org