You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2015/07/29 19:24:04 UTC

[jira] [Resolved] (PDFBOX-2909) NullPointerException when rendering shading with no function

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

Tilman Hausherr resolved PDFBOX-2909.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0
                   1.8.11

> 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: 1.8.10, 1.8.11, 2.0.0
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Minor
>             Fix For: 1.8.11, 2.0.0
>
>         Attachments: PDFJS-5509.pdf
>
>
> {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