Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.2, 2.0.3, 3.0.0 PDFBox
-
None
Description
Caused by: java.lang.NullPointerException: null
org.apache.pdfbox.pdmodel.font.PDType1Font.generateBoundingBox(PDType1Font.java:519)
org.apache.pdfbox.pdmodel.font.PDType1Font.getBoundingBox(PDType1Font.java:509)
org.apache.pdfbox.text.LegacyPDFStreamEngine.showGlyph(LegacyPDFStreamEngine.java:162)
org.apache.pdfbox.contentstream.PDFStreamEngine.showText(PDFStreamEngine.java:715)
The cause is an empty font descriptor and a missing check for null. I'll add the check at other places too.