[SPIGOT-1489] CraftInventoryPlayer#getHolder() throws NPE instead of returning Null. Created: 13/Feb/16 Updated: 21/Feb/16 Resolved: 21/Feb/16 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Cayorion | Assignee: | Unassigned |
Resolution: | Won't Fix | Votes: | 0 |
Labels: | CraftInventoryPlayer, NMS, NPE, PlayerInventory | ||
Environment: |
OS Name: Microsoft Windows 10 Pro |
Plugin: | Spigot + MassiveCore |
Description |
MassiveCore makes use of reflection to clone player inventories. This is very useful since custom player inventories as provided by the Bukkit API does not provide armor slot support. A player brought to my attention that this some times will cause an NPE: It happens at the following line in CraftBukkit This is the current section in NMS: I kindly ask that you add the following NPE evasion line: |
Comments |
Comment by md_5 [ 21/Feb/16 ] |
Not an issue possible in Vanilla or with API usage. |