Fix issue where null MinecraftServer entries were being returned in getServerStatuses() method in RedisServerRepository.
This commit is contained in:
parent
3c4c537998
commit
5c0e1ad484
@ -69,7 +69,12 @@ public class RedisServerRepository implements ServerRepository
|
|||||||
for (Response<String> response : responses)
|
for (Response<String> response : responses)
|
||||||
{
|
{
|
||||||
String serializedData = response.get();
|
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)
|
catch (JedisConnectionException exception)
|
||||||
|
Loading…
Reference in New Issue
Block a user