Author: fanningpj
Date: Mon Aug  7 19:11:54 2023
New Revision: 1911519

URL: http://svn.apache.org/viewvc?rev=1911519&view=rev
Log:
use of junit internal StringUtils is causing build issues

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

Modified: 
poi/trunk/poi-integration/src/test/java/org/apache/poi/stress/TestAllFiles.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/poi-integration/src/test/java/org/apache/poi/stress/TestAllFiles.java?rev=1911519&r1=1911518&r2=1911519&view=diff
==============================================================================
--- 
poi/trunk/poi-integration/src/test/java/org/apache/poi/stress/TestAllFiles.java 
(original)
+++ 
poi/trunk/poi-integration/src/test/java/org/apache/poi/stress/TestAllFiles.java 
Mon Aug  7 19:11:54 2023
@@ -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;



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to