Add a null check for the throwable message in NetWorkDispatcher#exceptionCaught (#3688)
(cherry picked from commit 1be1bb59c5c4c7432c515ef07beb6bf7e1f6ef27)
This commit is contained in:
parent
d3c6130f88
commit
219e1d418b
|
@ -586,7 +586,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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue