bug 60484: avoid NPE

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1777063 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2017-01-03 04:35:54 +00:00
parent 9eb965304c
commit 9a32a42130
1 changed files with 5 additions and 2 deletions

View File

@ -421,8 +421,11 @@ public final class Picture
if ( escherRecord instanceof EscherBSERecord )
{
return ( (EscherBSERecord) escherRecord ).getBlipRecord()
.getPicturedata();
EscherBlipRecord blip = ( (EscherBSERecord) escherRecord ).getBlipRecord();
if (blip != null) {
return blip.getPicturedata();
}
}
return new byte[0];
}