Fix: "toString" In Player.java Now Correctly Handles "null" Argument For "totem" Attribute.
This commit is contained in:
@@ -254,7 +254,9 @@ public class Player implements Serializable {
|
||||
|
||||
table.addHeader(this.getUserName());
|
||||
table.addRow("RESOURCES:");
|
||||
table.addRow("Totem: " + this.totem.toString());
|
||||
if(this.totem != null) {
|
||||
table.addRow("Totem: " + this.totem.toString());
|
||||
}
|
||||
table.addRow("Food: " + this.getFoodValue());
|
||||
table.addRow("Prestige: " + this.getPrestigeValue());
|
||||
table.addSeparator();
|
||||
|
||||
Reference in New Issue
Block a user