diff --git a/eco-core/core-plugin/src/main/java/com/willfp/eco/spigot/gui/GUIListener.java b/eco-core/core-plugin/src/main/java/com/willfp/eco/spigot/gui/GUIListener.java index 4b8ea4dd7..b11544db3 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/eco/spigot/gui/GUIListener.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/eco/spigot/gui/GUIListener.java @@ -54,6 +54,10 @@ public void handleClose(@NotNull final InventoryCloseEvent event) { Menu menu = MenuHandler.getMenu(event.getInventory()); + if (menu == null) { + return; + } + Validate.isTrue(menu instanceof EcoMenu, "Menu not instance of EcoMenu!"); EcoMenu ecoMenu = (EcoMenu) menu;