From: PJ Fanning Date: Mon, 7 Aug 2023 19:11:54 +0000 (+0000) Subject: use of junit internal StringUtils is causing build issues X-Git-Tag: REL_5_2_4~81 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ac9da84c8649f2a80f594e13a269db6df319a813;p=poi.git use of junit internal StringUtils is causing build issues git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911519 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/poi-integration/src/test/java/org/apache/poi/stress/TestAllFiles.java b/poi-integration/src/test/java/org/apache/poi/stress/TestAllFiles.java index 4d21916baa..446375affd 100644 --- a/poi-integration/src/test/java/org/apache/poi/stress/TestAllFiles.java +++ b/poi-integration/src/test/java/org/apache/poi/stress/TestAllFiles.java @@ -275,10 +275,12 @@ public class TestAllFiles { } private static boolean isBlank(final String str) { - final int strLen = str.length(); - for (int i = 0; i < strLen; i++) { - if (!Character.isWhitespace(str.charAt(i))) { - return false; + if (str != null) { + final int strLen = str.length(); + for (int i = 0; i < strLen; i++) { + if (!Character.isWhitespace(str.charAt(i))) { + return false; + } } } return true;