mirror of https://github.com/apache/poi.git
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
d45616031e
commit
16c68c9f05
|
@ -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