Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.8.10, 1.8.11, 2.0.0
Description
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)
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.