Guard against null messages.
This commit is contained in:
1 parent
b5fbf09f8f
commit
7de3e55d58
1 file changed
+1
-1
@@ -98,7 +98,7 @@ public enum Msg {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String format(String s) {
|
public String format(String s) {
|
||||||
return toString().replace("%", s);
|
return (s == null) ? "" : toString().replace("%", s);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void load(ConfigurationSection config) {
|
static void load(ConfigurationSection config) {
|
||||||
|
|||||||
Reference in new issue
Block a user