diff --git a/src/main/java/net/knarcraft/minecraftserverlauncher/utility/CommonFunctions.java b/src/main/java/net/knarcraft/minecraftserverlauncher/utility/CommonFunctions.java index 7e20d7e..c20d2b1 100644 --- a/src/main/java/net/knarcraft/minecraftserverlauncher/utility/CommonFunctions.java +++ b/src/main/java/net/knarcraft/minecraftserverlauncher/utility/CommonFunctions.java @@ -331,7 +331,7 @@ public final class CommonFunctions { * @return
True if the name is valid
*/ public static boolean nameIsValid(String name) { - return !name.equals("") && name.matches("[^!?;,]+"); + return name != null && !name.equals("") && name.matches("[^!?;,]+"); } /**