ItemMeta.addEnchant() should check for null

XMLWordPrintable

    • 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.

            Assignee:
            Unassigned
            Reporter:
            Black Hole
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: