mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2024-12-23 18:48:02 +00:00
Added missing null check.
This commit is contained in:
parent
6df0a481e7
commit
e15b4d23f3
@ -118,7 +118,9 @@ public final class RedisBungee extends Plugin {
|
||||
final Multimap<String, UUID> serversToPlayers() {
|
||||
ImmutableMultimap.Builder<String, UUID> multimapBuilder = ImmutableMultimap.builder();
|
||||
for (UUID p : getPlayers()) {
|
||||
multimapBuilder.put(dataManager.getServer(p), p);
|
||||
String name = dataManager.getServer(p);
|
||||
if (name != null)
|
||||
multimapBuilder.put(name, p);
|
||||
}
|
||||
return multimapBuilder.build();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user