Fix issue where null MinecraftServer entries were being returned in getServerStatuses() method in RedisServerRepository.

This commit is contained in:
Ty 2014-08-15 15:32:01 -04:00
parent 3c4c537998
commit 5c0e1ad484

View File

@ -69,7 +69,12 @@ public class RedisServerRepository implements ServerRepository
for (Response<String> response : responses)
{
String serializedData = response.get();
servers.add(Utility.deserialize(serializedData, MinecraftServer.class));
MinecraftServer server = Utility.deserialize(serializedData, MinecraftServer.class);
if (server != null)
{
servers.add(server);
}
}
}
catch (JedisConnectionException exception)