From 310fd18e8953c628c48d32891e7a33e1aac85c52 Mon Sep 17 00:00:00 2001 From: "Kristian S. Stangeland" Date: Sun, 17 Mar 2013 23:55:08 +0100 Subject: [PATCH] Ignore players that have logged out and have not been injected. --- ItemDisguise/.classpath | 6 ++++++ .../injector/player/ProxyPlayerInjectionHandler.java | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/ItemDisguise/.classpath b/ItemDisguise/.classpath index 71e70473..2bda6dc7 100644 --- a/ItemDisguise/.classpath +++ b/ItemDisguise/.classpath @@ -7,6 +7,12 @@ + + + + + + diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/injector/player/ProxyPlayerInjectionHandler.java b/ProtocolLib/src/main/java/com/comphenix/protocol/injector/player/ProxyPlayerInjectionHandler.java index 5a9be055..6816610b 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/injector/player/ProxyPlayerInjectionHandler.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/injector/player/ProxyPlayerInjectionHandler.java @@ -537,6 +537,11 @@ class ProxyPlayerInjectionHandler implements PlayerInjectionHandler { if (injector == null) { // Try getting it from the player itself SocketAddress address = player.getAddress(); + + // Must have logged out - there's nothing we can do + if (address == null) + return null; + // Look that up without blocking SocketInjector result = inputStreamLookup.peekSocketInjector(address);