mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +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
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return amount.toString();
|
if (amount != null)
|
||||||
|
return amount.toString();
|
||||||
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue