[SPIGOT-7174] java.lang.IllegalArgumentException - Adding to Bundle from Cursor when Bundle has more than 64 items Created: 19/Oct/22  Updated: 25/Dec/24  Resolved: 28/Oct/22

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

Type: Bug Priority: Minor
Reporter: EclipseBre Assignee: Doc
Resolution: Fixed Votes: 0
Labels: None
Environment:

Windows 10. Java JDK 17.01. Up to date Spigot 1.19.2 server running locally. Client is a Fabric 1.19.2.


Attachments: File cmd_2fFGC0Uix3.mp4     Text File exception.txt     PNG File javaw_Mw0ix1VFjV.png    
Version: CraftBukkit version 3599-Spigot-4aa5ead-aaf484f (MC: 1.19.2) (Implementing API version 1.19.2-R0.1-SNAPSHOT)
Plugin: Spigot
Guidelines Read: Yes

 Description   

When attempting to add an Itemstack from the Cursor to a Bundle with more than 64 items inside, the Player is kicked with a 

Internal Exception: io.netty.handler.codec.DecoderException: java.lang.IllegalArgumentException: item is null or air 

and the server creates a long list of netty io exceptions, related to CraftMetaBundle.

When instead having the Bundle on the Cursor and attempting to add an Itemstack by rightclicking on a slot, the action is simply denied without error.

 

This same sequence of events is also bugged in Vanilla, but instead of throwing an exception it adds an empty ItemStack of AIR to the bundle with every attempt.

[link Link|[MC-256599] Bundle adds AIR as a stack when attempting to add to a bundle with more than 64 items inside - Jira (mojang.com)]

(Confirmed on the Mojang bug tracker)



 Comments   
Comment by Doc [ 20/Oct/22 ]

Created a PR for handle the construction of this instance of meta. https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/pull-requests/1114

Generated at Sun Mar 30 17:51:35 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.