mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
* Changed info handling, empty or null values delete now the map entry.
This commit is contained in:
parent
e424635d20
commit
ddf42c7620
1 changed files with 5 additions and 1 deletions
|
@ -662,7 +662,11 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
|
||||||
if (info == null) {
|
if (info == null) {
|
||||||
info = new HashMap<>();
|
info = new HashMap<>();
|
||||||
}
|
}
|
||||||
info.put(key, value);
|
if (value == null || value.isEmpty()) {
|
||||||
|
info.remove(key);
|
||||||
|
} else {
|
||||||
|
info.put(key, value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue