You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Peter Brantsch (Jira)" <ji...@apache.org> on 2024/02/22 13:58:00 UTC

[jira] [Created] (PDFBOX-5774) NullPointerException in FontBox caused by system font

Peter Brantsch created PDFBOX-5774:
--------------------------------------

             Summary: 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
            Reporter: Peter Brantsch


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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org