mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-02-15 09:51:20 +01:00
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)));
|
item.setBase64ItemCode(Base64.encodeObject(yaml.dump(itemStack)));
|
||||||
itemDao.update(item);
|
itemDao.update(item);
|
||||||
updated.getAndIncrement();
|
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);
|
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
Block a user