Hi guys, I want to check, if the player does a rightclick with a slimeblock in air or on block and hold a golden apple in the left hand (so the new slot since 1.9) and eat them. The result was a nullpointerexception in the if e.getItem() line. Any ideas? Code (Text): public class RightClickListener implements Listener { @EventHandler public void onClick(PlayerInteractEvent e) { if(e.getAction()== Action.RIGHT_CLICK_AIR|| Action.RIGHT_CLICK_BLOCK==e.getAction()) { if(e.getItem().getType()==Material.SLIME_BLOCK) { e.setCancelled(true); e.getPlayer().addPotionEffect(new PotionEffect(PotionEffectType.JUMP,30*20,4)); e.getPlayer().getInventory().setItem(e.getPlayer().getInventory().getHeldItemSlot(), new ItemStack(Material.AIR)); } } } }