You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (Jira)" <ji...@apache.org> on 2019/12/23 22:17:03 UTC
[jira] [Closed] (PDFBOX-4682) NPE at PDSimpleFont.isStandard14()
[ https://issues.apache.org/jira/browse/PDFBOX-4682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler closed PDFBOX-4682.
--------------------------------------
> NPE at PDSimpleFont.isStandard14()
> ----------------------------------
>
> Key: PDFBOX-4682
> URL: https://issues.apache.org/jira/browse/PDFBOX-4682
> Project: PDFBox
> Issue Type: New Feature
> Components: PDModel
> Affects Versions: 2.0.16, 2.0.17
> Reporter: Gili
> Assignee: Tilman Hausherr
> Priority: Major
> Fix For: 2.0.18, 3.0.0 PDFBox
>
>
> PDSimpleFont.isStandard14() invokes:
>
> {code:java}
> Encoding baseEncoding = dictionary.getBaseEncoding();
> for (Map.Entry<Integer, String> entry : dictionary.getDifferences().entrySet())
> {
> if (!entry.getValue().equals(baseEncoding.getName(entry.getKey())))
> {
> return false;
> }
> }
> {code}
> if dictionary.getBaseEncoding() is null then the if-statement throws a NPE.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org