Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-887

Sheep Breeding NPE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • None

      So this issue is a bit odd.
      Basically, an NPE is thrown when attempting to use event.getInventory.getOwner() on a PrepareItemCraftEvent that was fired by... Breeding sheep?

      http://pastebin.com/3zSUexZ9

      I'm not sure why a crafting inventory is used to determine the color of the new sheep, but I think Spigot should at least be returning null for something like this instead of causing all kinds of problems with internal NPEs.

            Unassigned Unassigned
            Morphan1 Morphan1
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: