From f9c55850de821303e7ce6cae319c5c333ba13eca Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Thu, 17 Jan 2019 12:40:06 +0200 Subject: [PATCH] Fixed empty config Strings being overridden by defaults --- .../plan/system/settings/config/ConfigValueParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plan/common/src/main/java/com/djrapitops/plan/system/settings/config/ConfigValueParser.java b/Plan/common/src/main/java/com/djrapitops/plan/system/settings/config/ConfigValueParser.java index c79d6cef2..2b84e08b6 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/system/settings/config/ConfigValueParser.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/system/settings/config/ConfigValueParser.java @@ -93,7 +93,7 @@ public interface ConfigValueParser { boolean surroundedByQuotes = value.startsWith("'") || value.endsWith("'"); boolean surroundedByDoubleQuotes = value.startsWith("\"") || value.endsWith("\""); - boolean containsSpace = value.contains(" "); + boolean containsSpace = value.isEmpty() || value.contains(" "); boolean startsWithSpecialSymbol = value.startsWith("-") || value.startsWith("#") || value.startsWith("&"); if (surroundedByDoubleQuotes || containsSpace || startsWithSpecialSymbol) {