mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-14 04:01:58 +01:00
Fixed ArrayIndexOutOfBounds with new User (No nicknames in db)
This commit is contained in:
parent
db935fb981
commit
caece02f63
@ -59,7 +59,9 @@ public class DataCache extends SessionCache {
|
||||
List<String> nicknames = null;
|
||||
try {
|
||||
nicknames = db.getNicknamesTable().getNicknames(uuid);
|
||||
return nicknames.get(nicknames.size() - 1);
|
||||
if (!nicknames.isEmpty()) {
|
||||
return nicknames.get(nicknames.size() - 1);
|
||||
}
|
||||
} catch (SQLException e) {
|
||||
Log.toLog(this.getClass().getName(), e);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user