Tilman Hausherr created PDFBOX-5830:
---------------------------------------
Summary: 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: 3.0.2 PDFBox, 2.0.31
Reporter: Tilman Hausherr
Assignee: Tilman Hausherr
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 from another font and this font
has a ".notdef" because this isn't in the glyph list.
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]