[
https://issues.apache.org/jira/browse/PDFBOX-3187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15092488#comment-15092488
]
Andreas Lehmkühler commented on PDFBOX-3187:
--------------------------------------------
The super call will trigger an exception when isCIDFont is false
> 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: [email protected]
For additional commands, e-mail: [email protected]