MasterCake 5 years ago
parent
commit
e69d0f5455
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Tools/src/main/java/de/Linus122/TimeIsMoney/tools/Utils.java

+ 4 - 0
Tools/src/main/java/de/Linus122/TimeIsMoney/tools/Utils.java

@@ -23,6 +23,10 @@ public class Utils {
 	 * @return The converted string with {@link org.bukkit.ChatColor}.
 	 */
 	public static String CC(String s) {
+		// return an empty string if given string is null
+		if(s != null) {
+			return "";
+		}
 		return ChatColor.translateAlternateColorCodes('&', s);
 	}
 }