fix get player when no fetch group
This commit is contained in:
parent
f6560a85fd
commit
a68bc91459
1 changed files with 6 additions and 4 deletions
|
@ -78,11 +78,13 @@ public class DatabaseRepository {
|
|||
p.addCompletion(new Completion(0, 0));
|
||||
}
|
||||
}
|
||||
if (hasColumn(playerResult, "name")) {
|
||||
// Manage groups
|
||||
String groupName = playerResult.getString("name");
|
||||
if (groupName != null) {
|
||||
p.addGroup(makeGroup(playerResult));
|
||||
}
|
||||
}
|
||||
|
||||
// ADD rank
|
||||
PreparedStatement completionsStmt = DatabaseQuery.GET_PLAYER_RANK.prepare(con);
|
||||
|
|
Loading…
Add table
Reference in a new issue