catch ClassCastException in the ItemDatabase update method (#563)
This commit is contained in:
parent
9bbd6028d0
commit
f3cf4cd96e
|
@ -103,7 +103,7 @@ public class ItemDatabase {
|
|||
item.setBase64ItemCode(Base64.encodeObject(yaml.dump(itemStack)));
|
||||
itemDao.update(item);
|
||||
updated.getAndIncrement();
|
||||
} catch (YAMLException e) {
|
||||
} catch (YAMLException | ClassCastException e) {
|
||||
ChestShop.getBukkitLogger().log(Level.SEVERE, "YAML of the item with ID " + Base62.encode(item.getId()) + " (" + item.getId() + ") is corrupted: \n" + serialized);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue