mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
Avoid NPE with broken files when handling text-shapes
This commit is contained in:
parent
0ec4434f59
commit
ac989335d7
@ -351,7 +351,7 @@ implements TextShape<HSLFShape,HSLFTextParagraph> {
|
||||
return -1;
|
||||
}
|
||||
List<HSLFTextParagraph> paras = HSLFTextParagraph.findTextParagraphs(_txtbox, getSheet());
|
||||
return (paras.isEmpty() || paras.get(0).getIndex() == -1) ? -1 : paras.get(0).getRunType();
|
||||
return (paras == null || paras.isEmpty() || paras.get(0).getIndex() == -1) ? -1 : paras.get(0).getRunType();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
BIN
test-data/slideshow/6afff8111a22b118d1ed4eba5007c153de0b0ad7.ppt
Normal file
BIN
test-data/slideshow/6afff8111a22b118d1ed4eba5007c153de0b0ad7.ppt
Normal file
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user