diff --git a/src/main/java/org/apache/commons/lang3/text/StrTokenizer.java b/src/main/java/org/apache/commons/lang3/text/StrTokenizer.java index cb5434255..3236329a6 100644 --- a/src/main/java/org/apache/commons/lang3/text/StrTokenizer.java +++ b/src/main/java/org/apache/commons/lang3/text/StrTokenizer.java @@ -637,7 +637,7 @@ public class StrTokenizer implements ListIterator, Cloneable { * @return the modifiable list of String tokens, unmodifiable if null array or zero count */ protected List tokenize(final char[] srcChars, final int offset, final int count) { - if (srcChars == null || count == 0) { + if (ArrayUtils.isEmpty(srcChars)) { return Collections.emptyList(); } final StrBuilder buf = new StrBuilder();