mirror of
https://github.com/songoda/EpicBosses.git
synced 2025-01-09 00:37:34 +01:00
Fix IndexOutOfBounds in StringUtils.formatString
This commit is contained in:
parent
f775064ae5
commit
8d41e3fa2d
@ -113,6 +113,7 @@ public class StringUtils {
|
|||||||
|
|
||||||
public String formatString(String string) {
|
public String formatString(String string) {
|
||||||
if (string == null) return "null";
|
if (string == null) return "null";
|
||||||
|
if (string.isEmpty()) return string;
|
||||||
|
|
||||||
string = string.toLowerCase();
|
string = string.toLowerCase();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user