Catch the right exception

This commit is contained in:
Dan Mulloy 2016-05-17 17:04:19 -04:00
parent 869b457810
commit 411b7a2446

View File

@ -604,7 +604,7 @@ public class ChannelInjector extends ByteToMessageDecoder implements Injector {
// Save the channel injector // Save the channel injector
factory.cacheInjector(profile.getName(), this); factory.cacheInjector(profile.getName(), this);
} }
} catch (NullPointerException ex) { } catch (IllegalArgumentException ex) { // Thrown by FuzzyReflection#getFields()
System.err.println(String.format("[ProtocolLib] Encountered NPE in handleLogin(%s, %s)", packetClass, packet)); System.err.println(String.format("[ProtocolLib] Encountered NPE in handleLogin(%s, %s)", packetClass, packet));
System.err.println("PACKET_LOGIN_CLIENT = " + PACKET_LOGIN_CLIENT); System.err.println("PACKET_LOGIN_CLIENT = " + PACKET_LOGIN_CLIENT);
System.err.println("LOGIN_GAME_PROFILE = " + LOGIN_GAME_PROFILE); System.err.println("LOGIN_GAME_PROFILE = " + LOGIN_GAME_PROFILE);