Browse Source

Avoid NullPointerException if an image cannot be read

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1674952 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_3_12_FINAL
Dominik Stadler 9 years ago
parent
commit
1201332d48

+ 4
- 0
src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFImageRenderer.java View File

@@ -99,6 +99,10 @@ public class XSLFImageRenderer {
} catch (Exception e) {
return false;
}
if(img == null) {
return false;
}
int iw = img.getWidth();
int ih = img.getHeight();

BIN
test-data/slideshow/at.ecodesign.www_downloads_Vertiefungsvortrag_elektronik.pptx View File


Loading…
Cancel
Save