diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2019-06-23 23:13:15 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2019-06-23 23:13:15 +0000 |
commit | dd6d090969def01c15b0cb6a9f8da37472a45a2c (patch) | |
tree | b4cda8a7fc4bd5d05e985a265df867384a0e412c /src/java/org/apache | |
parent | 0df618c1091dee81f5b44c3351ae0f4c3f52b212 (diff) | |
download | poi-dd6d090969def01c15b0cb6a9f8da37472a45a2c.tar.gz poi-dd6d090969def01c15b0cb6a9f8da37472a45a2c.zip |
fix rendering of xslf shapes with no/external blip part
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1861958 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache')
-rw-r--r-- | src/java/org/apache/poi/sl/draw/DrawPaint.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/java/org/apache/poi/sl/draw/DrawPaint.java b/src/java/org/apache/poi/sl/draw/DrawPaint.java index fea1da4661..ea5e2ad39c 100644 --- a/src/java/org/apache/poi/sl/draw/DrawPaint.java +++ b/src/java/org/apache/poi/sl/draw/DrawPaint.java @@ -237,6 +237,9 @@ public class DrawPaint { assert(graphics != null); final String contentType = fill.getContentType(); + if (contentType == null || contentType.isEmpty()) { + return TRANSPARENT; + } ImageRenderer renderer = DrawPictureShape.getImageRenderer(graphics, contentType); |