mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
fixed NPE when amount is null
This commit is contained in:
parent
9c4297c74a
commit
b7e754d8d9
1 changed files with 3 additions and 1 deletions
|
@ -44,7 +44,9 @@ public class PermanentsOnBattlefieldCount implements DynamicValue {
|
|||
|
||||
@Override
|
||||
public String toString() {
|
||||
return amount.toString();
|
||||
if (amount != null)
|
||||
return amount.toString();
|
||||
return "";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue