Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.26, 3.0.0 PDFBox
-
None
Description
The following exception occurs when rendering file from PDFBOX-5178
Caused by: java.lang.NullPointerException: Cannot invoke "org.apache.pdfbox.pdmodel.common.PDRectangle.getLowerLeftX()" because "bbox" is null org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDAbstractAppearanceHandler.setTransformationMatrix(PDAbstractAppearanceHandler.java:504) org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDAbstractAppearanceHandler.getAppearanceEntryAsContentStream(PDAbstractAppearanceHandler.java:487) org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDAbstractAppearanceHandler.getNormalAppearanceAsContentStream(PDAbstractAppearanceHandler.java:149) org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDAbstractAppearanceHandler.getNormalAppearanceAsContentStream(PDAbstractAppearanceHandler.java:132) org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDFileAttachmentAppearanceHandler.generateNormalAppearance(PDFileAttachmentAppearanceHandler.java:64) org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDFileAttachmentAppearanceHandler.generateAppearanceStreams(PDFileAttachmentAppearanceHandler.java:51) org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationMarkup.constructAppearances(PDAnnotationMarkup.java:902) org.apache.pdfbox.rendering.PageDrawer.showAnnotation(PageDrawer.java:1511) org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:283) org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:355) org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.doInBackground(PagePane.java:453) org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.doInBackground(PagePane.java:435) java.base/java.lang.Thread.run(Thread.java:833)
The issue was introduced with PDFBOX-5394 and happens due to an malformed rectangle (an array of 3 instead of 4 values)