Fix NPE making exception tracing hard

This commit is contained in:
Chicken-Bones committed 2015-06-20 22:58:03 +10:00
1 parent 6056be3b64
commit b524c69599
1 file changed
+1 -1
@@ -45,7 +45,7 @@ object MultipartCPH extends MultipartPH with IClientPacketHandler
}
}
catch {
case e:RuntimeException if e.getMessage.startsWith("DC: ") =>
case e:RuntimeException if e.getMessage != null && e.getMessage.startsWith("DC: ") =>
netHandler.handleDisconnect(new S40PacketDisconnect(new ChatComponentText(e.getMessage.substring(4))))
}
}