* Changed info handling, empty or null values delete now the map entry.

This commit is contained in:
LevelX2 2014-10-11 11:26:36 +02:00
parent e424635d20
commit ddf42c7620

View file

@ -662,7 +662,11 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
if (info == null) {
info = new HashMap<>();
}
info.put(key, value);
if (value == null || value.isEmpty()) {
info.remove(key);
} else {
info.put(key, value);
}
}
@Override