Fixed null pointers for getUUID

This commit is contained in:
boy0001 2014-12-23 02:39:17 +11:00
parent d0876c60b0
commit e0adcb3b60
6 changed files with 27 additions and 3 deletions

View file

@ -219,7 +219,7 @@ import java.util.UUID;
private String getPlayerName(final UUID uuid) {
if (uuid == null) {
return uuid.toString();
return "unknown";
}
if (uuid.equals(DBFunc.everyone) || uuid.toString().equalsIgnoreCase(DBFunc.everyone.toString())) {
return "everyone";