[ https://issues.apache.org/jira/browse/PDFBOX-5774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17819673#comment-17819673 ]
Tilman Hausherr commented on PDFBOX-5774: ----------------------------------------- You can also try a snapshot: https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/3.0.2-SNAPSHOT/ > NullPointerException in FontBox caused by system font > ----------------------------------------------------- > > Key: PDFBOX-5774 > URL: https://issues.apache.org/jira/browse/PDFBOX-5774 > Project: PDFBox > Issue Type: Bug > Components: FontBox > Affects Versions: 3.0.0 PDFBox > Environment: Fedora 39 > corretto-17.0.4.1 > Reporter: Peter Brantsch > Priority: Major > Attachments: pdfbox-fontbox-mwe.zip > > > The following NullPointerException occurs on a Fedora 39 machine: > {code:none} > java.lang.NullPointerException: Cannot invoke > "org.apache.fontbox.ttf.CFFTable.getFont()" because the return value of > "org.apache.fontbox.ttf.OpenTypeFont.getCFF()" is null > at > org.apache.pdfbox.pdmodel.font.FileSystemFontProvider.addTrueTypeFontImpl(FileSystemFontProvider.java:693) > at > org.apache.pdfbox.pdmodel.font.FileSystemFontProvider.addTrueTypeFont(FileSystemFontProvider.java:635) > at > org.apache.pdfbox.pdmodel.font.FileSystemFontProvider.scanFonts(FileSystemFontProvider.java:379) > at > org.apache.pdfbox.pdmodel.font.FileSystemFontProvider.<init>(FileSystemFontProvider.java:354) > at > org.apache.pdfbox.pdmodel.font.FontMapperImpl$DefaultFontProvider.<clinit>(FontMapperImpl.java:139) > ... 90 more > {code} > I have also found the offending font: "abattis-cantarell", installed as a > dependency of gnome-shell, triggers the bug. After removing the > abattis-cantarell font files from my system, the exception did no longer > occur. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org