2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2024-11-22 20:28:00 +00:00

Added missing null check.

This commit is contained in:
Tux 2014-08-10 06:27:50 -04:00
parent 6df0a481e7
commit e15b4d23f3

View File

@ -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();
}