From 2915101843180e0d37ab92d4baf2d6308ca9ec9e Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 30 Oct 2019 11:56:55 +0100 Subject: [PATCH] Use isEmpty() in StringUtils.requireNullOrNotEmpty() --- .../src/main/java/org/jivesoftware/smack/util/StringUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/util/StringUtils.java b/smack-core/src/main/java/org/jivesoftware/smack/util/StringUtils.java index 09b3407ff..ff01779ed 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/util/StringUtils.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/util/StringUtils.java @@ -535,7 +535,7 @@ public class StringUtils { if (cs == null) { return null; } - if (cs.toString().isEmpty()) { + if (isEmpty(cs)) { throw new IllegalArgumentException(message); } return cs;