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

(cherry picked from commit 1be1bb59c5c4c7432c515ef07beb6bf7e1f6ef27)
This commit is contained in:
Aaron Hill 2017-02-23 18:20:05 -05:00 committed by LexManos
parent d3c6130f88
commit 219e1d418b
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}