mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-28 05:35:28 +01:00
Catch the right exception
This commit is contained in:
parent
869b457810
commit
411b7a2446
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user