You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2014/07/20 12:08:38 UTC

[jira] [Comment Edited] (PDFBOX-2229) NPE in GlyfCompositeDescript.getPointCount

    [ https://issues.apache.org/jira/browse/PDFBOX-2229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14067869#comment-14067869 ] 

Tilman Hausherr edited comment on PDFBOX-2229 at 7/20/14 10:08 AM:
-------------------------------------------------------------------

getPointCount() now returns 0 instead of throwing an NPE. Now the page renders. I also added logging. This was done in rev 1612067 for the trunk.




was (Author: tilman):
getPointCount() now returns 0 instead of throwing an NPE. The rendered page looks fine. I also added logging. This was done in rev 1612067 for the trunk.



> NPE in GlyfCompositeDescript.getPointCount
> ------------------------------------------
>
>                 Key: PDFBOX-2229
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2229
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.0
>            Reporter: Tilman Hausherr
>             Fix For: 2.0.0
>
>         Attachments: PDFBOX-2229-031013.pdf, PDFBOX-2229-0310131-20.jpg, PDFBOX-2229-0310131-TH.jpg
>
>
> I get this with the attached file:
> {code}
> Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
>         at org.apache.fontbox.ttf.GlyfCompositeDescript.getPointCount(GlyfCompositeDescript.java:199)
>         at org.apache.fontbox.ttf.GlyphRenderer.describe(GlyphRenderer.java:56)
>         at org.apache.fontbox.ttf.GlyphRenderer.getPath(GlyphRenderer.java:46)
>         at org.apache.fontbox.ttf.GlyphData.getPath(GlyphData.java:114)
>         at org.apache.pdfbox.rendering.font.TTFGlyph2D.getPathForGlyphId(TTFGlyph2D.java:202)
>         at org.apache.pdfbox.rendering.font.TTFGlyph2D.getPathForCharacterCode(TTFGlyph2D.java:154)
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)