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

ASF subversion and git services commented on PDFBOX-4682:
---------------------------------------------------------

Commit 1869677 from Tilman Hausherr in branch 'pdfbox/branches/issue45'
[ https://svn.apache.org/r1869677 ]

PDFBOX-4682: type3 fonts are never standard 14

> 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
>            Reporter: Gili
>            Priority: Major
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to