From 0acd8cd939e4119eb2d3dc28fc680e5614100b86 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 16 Aug 2023 15:31:17 -0400 Subject: [PATCH] Initialize variable before building string. --- src/engine/net/client/msg/PetitionReceivedMsg.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/net/client/msg/PetitionReceivedMsg.java b/src/engine/net/client/msg/PetitionReceivedMsg.java index 2e31642d..fa66f1a9 100644 --- a/src/engine/net/client/msg/PetitionReceivedMsg.java +++ b/src/engine/net/client/msg/PetitionReceivedMsg.java @@ -82,6 +82,7 @@ public class PetitionReceivedMsg extends ClientNetMsg { this.compType = reader.getString(); this.language = reader.getString(); this.stringCount = reader.getInt(); + this.message = ""; IntStream.range(0, stringCount).forEach($ -> this.message += reader.getString()); } else {