-
Type:
New Feature
-
Resolution: Fixed
-
Priority:
Minor
-
None
-
Affects Version/s: None
-
None
When using ItemMeta.addEnchant() the provided enchantment is not checked for being null. Even ItemStack.setMeta() won't fail for pure Bukkit item stacks.
It will fail much later when this item stack is added to an inventory, like in this log I came across:
https://pastebin.com/D7eTttAB
I'll add a PR for this.