mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
Add an NPE check when retrieving fonts for bullet-items
This commit is contained in:
parent
04f4c1fa74
commit
da3d64d9e3
@ -714,7 +714,10 @@ public final class HSLFTextParagraph implements TextParagraph<HSLFShape,HSLFText
|
|||||||
return getDefaultFontFamily();
|
return getDefaultFontFamily();
|
||||||
}
|
}
|
||||||
HSLFFontInfo ppFont = getSheet().getSlideShow().getFont(tp.getValue());
|
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();
|
return ppFont.getTypeface();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
BIN
test-data/slideshow/2cade576206d5bf9a89479446973deeda5a9b549.ppt
Normal file
BIN
test-data/slideshow/2cade576206d5bf9a89479446973deeda5a9b549.ppt
Normal file
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user