diff options
author | PJ Fanning <fanningpj@apache.org> | 2023-08-07 19:11:54 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2023-08-07 19:11:54 +0000 |
commit | ac9da84c8649f2a80f594e13a269db6df319a813 (patch) | |
tree | ca6e4fbb0fa9a1243c102fd4c805f40ac1fb59ce /poi-integration | |
parent | 3b9a7c42c1ea24f3caa7eb2dc733aad07583ea6b (diff) | |
download | poi-ac9da84c8649f2a80f594e13a269db6df319a813.tar.gz poi-ac9da84c8649f2a80f594e13a269db6df319a813.zip |
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
Diffstat (limited to 'poi-integration')
-rw-r--r-- | poi-integration/src/test/java/org/apache/poi/stress/TestAllFiles.java | 10 |
1 files changed, 6 insertions, 4 deletions
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; |