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
This commit is contained in:
parent
a75cf0b57c
commit
ca8e3c465e
@ -100,6 +100,10 @@ public class XSLFImageRenderer {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(img == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
int iw = img.getWidth();
|
int iw = img.getWidth();
|
||||||
int ih = img.getHeight();
|
int ih = img.getHeight();
|
||||||
|
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user