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:
parent
9eb965304c
commit
9a32a42130
@ -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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user