Add an NPE check when retrieving fonts for bullet-items

This commit is contained in:
Dominik Stadler 2026-01-23 22:35:57 +01:00
parent 04f4c1fa74
commit da3d64d9e3
3 changed files with 4 additions and 1 deletions

View File

@ -714,7 +714,10 @@ public final class HSLFTextParagraph implements TextParagraph<HSLFShape,HSLFText
return getDefaultFontFamily();
}
HSLFFontInfo ppFont = getSheet().getSlideShow().getFont(tp.getValue());
assert(ppFont != null);
if (ppFont == null) {
throw new IllegalStateException("Could not get font from slide-show for bullet-font '" + tp.getValue() + "'");
}
return ppFont.getTypeface();
}

Binary file not shown.