diff --git a/src/java/org/apache/poi/sl/draw/DrawTexturePaint.java b/src/java/org/apache/poi/sl/draw/DrawTexturePaint.java index ce35b835e0..2d3db49069 100644 --- a/src/java/org/apache/poi/sl/draw/DrawTexturePaint.java +++ b/src/java/org/apache/poi/sl/draw/DrawTexturePaint.java @@ -102,7 +102,7 @@ import org.apache.poi.util.Dimension2DDouble; final Insets2D insets = fill.getInsets(); final Insets2D stretch = fill.getStretch(); - if ((insets == null || INSETS_EMPTY.equals(insets)) && (stretch == null)) { + if ((insets == null || INSETS_EMPTY.equals(insets)) && (stretch == null) || userBounds == null || userBounds.isEmpty()) { return bi; } diff --git a/test-data/integration/stress021.pptx b/test-data/integration/stress021.pptx new file mode 100644 index 0000000000..e262635014 Binary files /dev/null and b/test-data/integration/stress021.pptx differ