You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/09/10 12:03:21 UTC
[jira] [Commented] (PDFBOX-3490) NullPointerException in
PDType1Font.generateBoundingBox
[ https://issues.apache.org/jira/browse/PDFBOX-3490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15479696#comment-15479696 ]
ASF subversion and git services commented on PDFBOX-3490:
---------------------------------------------------------
Commit 1760151 from [~tilman] in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1760151 ]
PDFBOX-3490: avoid NPE
> NullPointerException in PDType1Font.generateBoundingBox
> -------------------------------------------------------
>
> Key: PDFBOX-3490
> URL: https://issues.apache.org/jira/browse/PDFBOX-3490
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.2, 2.0.3, 2.1.0
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Fix For: 2.0.3, 2.1.0
>
>
> {code}
> 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)
> {code}
> The cause is an empty font descriptor and a missing check for null. I'll add the check at other places too.
--
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