handle null names in getColorForName
This commit is contained in:
parent
7bb67ee660
commit
cfccf5e90d
|
@ -131,7 +131,7 @@ public class UIHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int getColorForName(String name) {
|
public static int getColorForName(String name) {
|
||||||
if (name.isEmpty()) {
|
if (name == null || name.isEmpty()) {
|
||||||
return 0xFF202020;
|
return 0xFF202020;
|
||||||
}
|
}
|
||||||
int colors[] = {0xFFe91e63, 0xFF9c27b0, 0xFF673ab7, 0xFF3f51b5,
|
int colors[] = {0xFFe91e63, 0xFF9c27b0, 0xFF673ab7, 0xFF3f51b5,
|
||||||
|
|
Loading…
Reference in a new issue