null check in parsecolors
This commit is contained in:
@@ -49,6 +49,7 @@ public class Utility {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static String parseColors(String message) {
|
public static String parseColors(String message) {
|
||||||
|
if (message == null) return "";
|
||||||
// split string in sections and check those vs looping hashmap?:/
|
// split string in sections and check those vs looping hashmap?:/
|
||||||
// think this is better, but will check numbers on this
|
// think this is better, but will check numbers on this
|
||||||
for (String key : colors.keySet()) {
|
for (String key : colors.keySet()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user