mirror of
https://github.com/apache/poi.git
synced 2026-02-27 12:30:08 +08:00
Handle slightly broken file with empty BlipFill properly
This commit is contained in:
parent
ac4e3c199e
commit
260b22fb09
@ -268,7 +268,7 @@ public final class XSSFPicture extends XSSFShape implements Picture {
|
||||
*/
|
||||
@Override
|
||||
public XSSFPictureData getPictureData() {
|
||||
if (ctPicture.getBlipFill().getBlip() == null) {
|
||||
if (ctPicture.getBlipFill() == null || ctPicture.getBlipFill().getBlip() == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
BIN
test-data/spreadsheet/npe.xlsx
Normal file
BIN
test-data/spreadsheet/npe.xlsx
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user