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

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

Commit 1878821 from Tilman Hausherr in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1878821 ]

PDFBOX-4880: avoid NPE

> NullPointerException in TrueTypeEmbedder.createFontDescriptor() with OCR-B 
> font
> -------------------------------------------------------------------------------
>
>                 Key: PDFBOX-4880
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4880
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.20
>            Reporter: Tilman Hausherr
>            Priority: Major
>             Fix For: 2.0.21, 3.0.0 PDFBox
>
>
> {noformat}
> Exception in thread "main" java.lang.NullPointerException
>       at 
> org.apache.pdfbox.pdmodel.font.TrueTypeEmbedder.createFontDescriptor(TrueTypeEmbedder.java:190)
>       at 
> org.apache.pdfbox.pdmodel.font.TrueTypeEmbedder.<init>(TrueTypeEmbedder.java:83)
>       at 
> org.apache.pdfbox.pdmodel.font.PDCIDFontType2Embedder.<init>(PDCIDFontType2Embedder.java:76)
>       at 
> org.apache.pdfbox.pdmodel.font.PDType0Font.<init>(PDType0Font.java:220)
>       at org.apache.pdfbox.pdmodel.font.PDType0Font.load(PDType0Font.java:67)
> {noformat}
> when loading the font at 
> https://www.dafontfree.net/freefonts-ocrb-f151774.htm
> The font has no os2 table. We should throw an IOException instead.



--
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