[SPIGOT-1721] Enderman#getCarriedMaterial() causes an NPE Created: 03/Mar/16 Updated: 04/Mar/16 Resolved: 04/Mar/16 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Brynley McDonald | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | 1.9, bukkit, enderman |
Description |
When calling Enderman#getCarriedMaterial, it will throw an NPE such as the error in CoreProtect here: http://pastebin.com/FxwPyDxX This is because `EntityEnderman#getCarried()` returns a null `IBlockData`, where `CraftEnderman` expects it to be nonnull. |