mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40: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
|
@Override
|
||||||
public XSSFPictureData getPictureData() {
|
public XSSFPictureData getPictureData() {
|
||||||
if (ctPicture.getBlipFill().getBlip() == null) {
|
if (ctPicture.getBlipFill() == null || ctPicture.getBlipFill().getBlip() == null) {
|
||||||
return 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