From c2a26dacc202f060e8dd31b6a4dfe7c40e968bfc Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 27 Feb 2022 12:41:54 +1300 Subject: [PATCH] Fix empty strings not being quoted --- .../me/libraryaddict/disguise/utilities/DisguiseUtilities.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java b/plugin/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java index 4c99accd..9d10d3ae 100644 --- a/plugin/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java +++ b/plugin/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java @@ -2292,7 +2292,7 @@ public class DisguiseUtilities { return list.toArray(new String[0]); }*/ public static String quote(String string) { - if (!string.contains(" ") && !string.startsWith("\"") && !string.endsWith("\"")) { + if (!string.isEmpty() && !string.contains(" ") && !string.startsWith("\"") && !string.endsWith("\"")) { return string; }