From 8d41e3fa2d40f36890015dd8697c08618cbb8610 Mon Sep 17 00:00:00 2001 From: Aurora Date: Thu, 13 Aug 2020 18:22:38 +0200 Subject: [PATCH] Fix IndexOutOfBounds in StringUtils.formatString --- .../Core/src/com/songoda/epicbosses/utils/StringUtils.java | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin-modules/Core/src/com/songoda/epicbosses/utils/StringUtils.java b/plugin-modules/Core/src/com/songoda/epicbosses/utils/StringUtils.java index ca9c453..ec96968 100644 --- a/plugin-modules/Core/src/com/songoda/epicbosses/utils/StringUtils.java +++ b/plugin-modules/Core/src/com/songoda/epicbosses/utils/StringUtils.java @@ -113,6 +113,7 @@ public class StringUtils { public String formatString(String string) { if (string == null) return "null"; + if (string.isEmpty()) return string; string = string.toLowerCase();