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

Closing a custom inventory with SHULKER_BOX InventoryType crashes JVM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • None
    • Built spigot 1.12.1 using BuildTools.jar (--rev 1.12.1)

      If you open a custom inventory with InventoryType as SHULKER_BOX, add an item to the inventory and then close the inventory, the JVM will crash.

      This issue does not occur if you close the inventory without putting something inside (open the inventory then close it without doing anything).

      Test code:

      @Override
      public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
      		Player player = (Player) sender;
      		Inventory inv = Bukkit.createInventory(player, InventoryType.SHULKER_BOX);
      		player.openInventory(inv);
      		return true;
      	}
      

            Unassigned Unassigned
            Skepter Jorel Ali
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: