From 0d8965410365d957073af09bd51b2b25561bf674 Mon Sep 17 00:00:00 2001 From: Anuken Date: Mon, 15 May 2023 10:26:35 -0400 Subject: [PATCH] Ignore null messages --- core/src/mindustry/core/NetClient.java | 2 ++ gradle.properties | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/core/NetClient.java b/core/src/mindustry/core/NetClient.java index 99608a6168..d9fa35135a 100644 --- a/core/src/mindustry/core/NetClient.java +++ b/core/src/mindustry/core/NetClient.java @@ -233,6 +233,8 @@ public class NetClient implements ApplicationListener{ return; } + if(message == null) return; + if(message.length() > maxTextLength){ throw new ValidateException(player, "Player has sent a message above the text limit."); } diff --git a/gradle.properties b/gradle.properties index 1440494de5..8d7036080a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -25,4 +25,4 @@ org.gradle.caching=true #used for slow jitpack builds; TODO see if this actually works org.gradle.internal.http.socketTimeout=100000 org.gradle.internal.http.connectionTimeout=100000 -archash=55585b5c6e +archash=ca4f4a41b0