[SPIGOT-887] Sheep Breeding NPE Created: 16/May/15  Updated: 21/May/15  Resolved: 21/May/15

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Morphan1 Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: breed, entity, sheep


 Description   

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.


Generated at Sat Apr 05 06:16:21 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.