Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.0.6
-
None
Description
We came accross a document that results in a NPE if opened with the debugger:
Caused by: java.lang.NullPointerException: null org.apache.fontbox.cmap.CMapParser.parseBeginbfrange(CMapParser.java:370) org.apache.fontbox.cmap.CMapParser.parse(CMapParser.java:136) org.apache.pdfbox.pdmodel.font.CMapManager.parseCMap(CMapManager.java:73) org.apache.pdfbox.pdmodel.font.PDFont.readCMap(PDFont.java:197) org.apache.pdfbox.pdmodel.font.PDFont.<init>(PDFont.java:137) org.apache.pdfbox.pdmodel.font.PDType0Font.<init>(PDType0Font.java:119) org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:83) org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:143) org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:60) org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:838) org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:495) org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:469) org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:150) org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:206) org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:145) org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:68)