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

(cherry picked from commit 1be1bb59c5)
This commit is contained in:
Aaron Hill authored and LexManos committed 2017-02-23 15:20:32 -08:00
1 parent d3c6130f88
commit 219e1d418b
1 file changed
+1 -1
@@ -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");
}