From ac9da84c8649f2a80f594e13a269db6df319a813 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Mon, 7 Aug 2023 19:11:54 +0000 Subject: [PATCH] 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 --- .../test/java/org/apache/poi/stress/TestAllFiles.java | 10 ++++++---- 1 file 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; -- 2.39.5