mirror of
https://github.com/apache/poi.git
synced 2026-02-27 12:30:08 +08:00
Prevent a NullPointerException
The regression-corpus contains some documents which trigger this, but succeed with the added null-check
This commit is contained in:
parent
e09a167bbb
commit
207d67c12b
@ -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
BIN
test-data/slideshow/npe.ppt
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user