Initialize variable before building string.
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user