From 284f90183f25536c16fb2f2c9d56a71a0c142c22 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Thu, 20 Sep 2018 22:44:26 -0400 Subject: [PATCH] Add missing null check here --- .../src/main/java/com/velocitypowered/proxy/VelocityServer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java b/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java index 3c66d1c2d..d4d67a6ad 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java @@ -256,6 +256,7 @@ public class VelocityServer implements ProxyServer { @Override public void broadcast(Component component) { + Preconditions.checkNotNull(component, "component"); Chat chat = Chat.createClientbound(component); for (ConnectedPlayer player : connectionsByUuid.values()) { player.getConnection().write(chat);