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/01/11 19:09:39 UTC
[jira] [Commented] (PDFBOX-3187) NullPointerException CFFParser
[ https://issues.apache.org/jira/browse/PDFBOX-3187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15092395#comment-15092395 ]
ASF subversion and git services commented on PDFBOX-3187:
---------------------------------------------------------
Commit 1724102 from [~lehmi] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1724102 ]
PDFBOX-3187: avoid NPE
> NullPointerException CFFParser
> ------------------------------
>
> Key: PDFBOX-3187
> URL: https://issues.apache.org/jira/browse/PDFBOX-3187
> Project: PDFBox
> Issue Type: Bug
> Components: FontBox
> Affects Versions: 2.0.0
> Reporter: simon steiner
> Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
>
> Exception in thread "main" java.lang.NullPointerException
> at org.apache.fontbox.cff.CFFParser$Format1Charset.getCIDForGID(CFFParser.java:1326)
> when isCIDFont is false
> byte[] data = IOUtils.toByteArray(new FileInputStream("Broadsheet LDO.otf"));
> CFFParser p = new CFFParser();
> CFFFont ff = p.parse(data).get(0);
> ff.getCharset().getCIDForGID(0);
--
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