Prevent a NullPointerException

The regression-corpus contains some documents which trigger this,
but succeed with the added null-check
This commit is contained in:
Dominik Stadler 2025-11-02 22:10:01 +01:00
parent e09a167bbb
commit 207d67c12b
2 changed files with 1 additions and 1 deletions

View File

@ -629,7 +629,7 @@ public class HwmfGraphics implements HwmfCharsetAware {
}
FontCharset fc = font.getCharset();
if (fc == FontCharset.DEFAULT) {
if (fc == FontCharset.DEFAULT || fc == null) {
return charsetProvider.get();
}

BIN
test-data/slideshow/npe.ppt Normal file

Binary file not shown.