NPE on opening shulker box inventory

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • Environment:

      java version "1.8.0_101"
      Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
      Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
      Windows 10 Home 64bit

      Not able to open an inventory of a shulker box not placed(item stack).

      Sample code:

      Player player = /* ... */;
      ItemStack shulkerBox = /* ... */;
      BlockStateMeta meta = (BlockStateMeta) shulkerBox.getItemMeta();
      ShulkerBox state = (ShulkerBox) meta.getBlockState();
      player.openInventory(state.getInventory());
      

            Assignee:
            Unassigned
            Reporter:
            toyblocks
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: