diff --git a/Plugin/src/main/java/me/filoghost/chestcommands/menu/BaseIconMenu.java b/Plugin/src/main/java/me/filoghost/chestcommands/menu/BaseIconMenu.java index 4b24ad7..798905e 100644 --- a/Plugin/src/main/java/me/filoghost/chestcommands/menu/BaseIconMenu.java +++ b/Plugin/src/main/java/me/filoghost/chestcommands/menu/BaseIconMenu.java @@ -78,7 +78,7 @@ public abstract class BaseIconMenu implements IconMenu { public void refreshOpenInventories() { for (Player player : Bukkit.getOnlinePlayers()) { DefaultItemInventory itemInventory = MenuManager.getOpenItemInventory(player); - if (itemInventory.getIconMenu() == this) { + if (itemInventory != null && itemInventory.getIconMenu() == this) { itemInventory.refresh(); } }