Add a null check for the throwable message in NetWorkDispatcher#exceptionCaught (#3688)

This commit is contained in:
Aaron Hill authored and LexManos committed 2017-02-23 15:20:05 -08:00
1 parent fb44ba2e6d
commit 1be1bb59c5
1 file changed
+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");
}