mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2024-11-23 04:28:01 +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() {
|
final Multimap<String, UUID> serversToPlayers() {
|
||||||
ImmutableMultimap.Builder<String, UUID> multimapBuilder = ImmutableMultimap.builder();
|
ImmutableMultimap.Builder<String, UUID> multimapBuilder = ImmutableMultimap.builder();
|
||||||
for (UUID p : getPlayers()) {
|
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();
|
return multimapBuilder.build();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user