Skip to content

Commit

Permalink
Fixed a NPE when opening warp categories menu (#1601)
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerBenGera committed Feb 17, 2023
1 parent 071890c commit 37cd915
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -22,6 +22,10 @@ private WarpCategoryPagedObjectButton(MenuTemplateButton<MenuWarpCategories.View

@Override
public ItemStack modifyViewItem(ItemStack buttonItem) {
if (pagedObject == null) {
return ((PagedMenuTemplateButtonImpl<MenuWarpCategories.View, WarpCategory>) getTemplate()).getNullTemplateItem().build();
}

SuperiorPlayer inventoryViewer = menuView.getInventoryViewer();
Island island = menuView.getIsland();

Expand Down

0 comments on commit 37cd915

Please sign in to comment.