From 0153fe1f33c5b06ecd170cf107d975c1e9c53159 Mon Sep 17 00:00:00 2001 From: Travis Watkins Date: Wed, 25 Apr 2012 10:34:53 -0500 Subject: [PATCH] Check if packet is null before checking priority. Fixes BUKKIT-1579 --- src/main/java/net/minecraft/server/NetServerHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/NetServerHandler.java b/src/main/java/net/minecraft/server/NetServerHandler.java index 65c116504c..d07b114617 100644 --- a/src/main/java/net/minecraft/server/NetServerHandler.java +++ b/src/main/java/net/minecraft/server/NetServerHandler.java @@ -720,7 +720,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener { this.networkManager.queue(new Packet3Chat(line)); } packet = null; - } else if (packet.lowPriority == true) { + } else if (packet != null && packet.lowPriority == true) { // Reroute all low-priority packets through to compression thread. ChunkCompressionThread.sendPacket(this.player, packet); packet = null;