diff --git a/api/src/main/java/com/imaginarycode/minecraft/redisbungee/api/PlayerDataManager.java b/api/src/main/java/com/imaginarycode/minecraft/redisbungee/api/PlayerDataManager.java index 9aebbd22..12f360d3 100644 --- a/api/src/main/java/com/imaginarycode/minecraft/redisbungee/api/PlayerDataManager.java +++ b/api/src/main/java/com/imaginarycode/minecraft/redisbungee/api/PlayerDataManager.java @@ -251,7 +251,12 @@ public Multimap doPooledPipeline(Pipeline pipeline) { responses.put(uuid, pipeline.hget("redis-bungee::" + networkId + "::player::" + uuid + "::data", "server")); } pipeline.sync(); - responses.forEach((uuid, response) -> builder.put(response.get(), uuid)); + responses.forEach((uuid, response) -> { + String key = response.get(); + if (key == null) return; + + builder.put(key, uuid); + }); return builder.build(); } @@ -262,7 +267,12 @@ public Multimap clusterPipeline(ClusterPipeline pipeline) { responses.put(uuid, pipeline.hget("redis-bungee::" + networkId + "::player::" + uuid + "::data", "server")); } pipeline.sync(); - responses.forEach((uuid, response) -> builder.put(response.get(), uuid)); + responses.forEach((uuid, response) -> { + String key = response.get(); + if (key == null) return; + + builder.put(key, uuid); + }); return builder.build(); } }.call();