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,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
|
||||||
|
|
Loading…
Add table
Reference in a new issue