Initialize variable before building string.

This commit is contained in:
2023-08-16 15:31:17 -04:00
parent 03f17adecf
commit 0acd8cd939
@@ -82,6 +82,7 @@ public class PetitionReceivedMsg extends ClientNetMsg {
this.compType = reader.getString(); this.compType = reader.getString();
this.language = reader.getString(); this.language = reader.getString();
this.stringCount = reader.getInt(); this.stringCount = reader.getInt();
this.message = "";
IntStream.range(0, stringCount).forEach($ -> this.message += reader.getString()); IntStream.range(0, stringCount).forEach($ -> this.message += reader.getString());
} else { } else {