fix get player when no fetch group

This commit is contained in:
jeffcheasey88 2023-09-09 20:47:56 +02:00
parent f6560a85fd
commit a68bc91459

View file

@ -78,10 +78,12 @@ public class DatabaseRepository {
p.addCompletion(new Completion(0, 0)); p.addCompletion(new Completion(0, 0));
} }
} }
// Manage groups if (hasColumn(playerResult, "name")) {
String groupName = playerResult.getString("name"); // Manage groups
if (groupName != null) { String groupName = playerResult.getString("name");
p.addGroup(makeGroup(playerResult)); if (groupName != null) {
p.addGroup(makeGroup(playerResult));
}
} }
// ADD rank // ADD rank