mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 11:29:15 +00:00
Add a null check for the throwable message in NetWorkDispatcher#exceptionCaught (#3688)
This commit is contained in:
1 parent
fb44ba2e6d
commit
1be1bb59c5
1 file changed
+1
-1
+1
-1
@@ -583,7 +583,7 @@ public class NetworkDispatcher extends SimpleChannelInboundHandler<Packet<?>> im
|
||||
if (!(cause instanceof ClosedChannelException))
|
||||
{
|
||||
// Mute the reset by peer exception - it's disconnection noise
|
||||
if (cause.getMessage().contains("Connection reset by peer"))
|
||||
if (cause.getMessage() != null && cause.getMessage().contains("Connection reset by peer"))
|
||||
{
|
||||
FMLLog.log(Level.DEBUG, cause, "Muted NetworkDispatcher exception");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user