[
https://issues.apache.org/jira/browse/PDFBOX-5830?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tilman Hausherr resolved PDFBOX-5830.
-------------------------------------
Resolution: Fixed
> NullPointerException: Cannot invoke "String.codePointAt(int)" because "uni"
> is null
> -----------------------------------------------------------------------------------
>
> Key: PDFBOX-5830
> URL: https://issues.apache.org/jira/browse/PDFBOX-5830
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.31, 3.0.2 PDFBox
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Priority: Major
> Fix For: 2.0.32, 3.0.3 PDFBox, 4.0.0
>
>
> As reported to me by T.G.
> {noformat}
> Exception in thread "main" java.lang.NullPointerException: Cannot invoke
> "String.codePointAt(int)" because "uni" is null
> at
> org.apache.pdfbox.pdmodel.font.PDTrueTypeFontEmbedder.setWidths(PDTrueTypeFontEmbedder.java:102)
> {noformat}
> This happens when an existing encoding is passed to PDTrueTypeFont.load()
> with the 3rd parameter being an existing encoding "with differences" from
> another font and this encoding has a ".notdef", because this isn't in the
> Adobe glyph list. The whole thing is done to replace a simple not embedded
> font with a hopefully equivalent embedded font.
> Solution: assume GID 0 for such cases.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]