Added null check for reward logging.

This commit is contained in:
garbagemule committed 2012-03-11 13:41:30 +01:00
1 parent 7ecc2c7a0d
commit f0e0419ebd
3 files changed
+3 -1

No files matched your search

@@ -85,6 +85,8 @@ public class YMLSessionBuilder implements LogSessionBuilder
Map<String,MutableInt> summed = new HashMap<String,MutableInt>();
for (ItemStack stack : rewards) {
if (stack == null) continue;
String type = (stack.getTypeId() == MobArena.ECONOMY_MONEY_ID ? "money" : stack.getType().toString().toLowerCase());
if (!summed.containsKey(type)) {
summed.put(type, new MutableInt());