]> source.dussan.org Git - poi.git/commitdiff
use of junit internal StringUtils is causing build issues
authorPJ Fanning <fanningpj@apache.org>
Mon, 7 Aug 2023 19:11:54 +0000 (19:11 +0000)
committerPJ Fanning <fanningpj@apache.org>
Mon, 7 Aug 2023 19:11:54 +0000 (19:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911519 13f79535-47bb-0310-9956-ffa450edef68

poi-integration/src/test/java/org/apache/poi/stress/TestAllFiles.java

index 4d21916baadd56a74c6ac977f66170d9a2607728..446375affdd8a496a358a857b3b451dadc4b824d 100644 (file)
@@ -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;