diff --git a/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/AuctionsMenu.java b/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/AuctionsMenu.java index 0da3a89..b593000 100644 --- a/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/AuctionsMenu.java +++ b/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/AuctionsMenu.java @@ -372,6 +372,6 @@ public class AuctionsMenu extends Holder { this.items.add(auction); }))); - this.maxPages = getMaxPage(this.items); + this.maxPages = getMaxPage(this.items == null ? new ArrayList<>() : this.items); } } \ No newline at end of file diff --git a/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/ExpiredMenu.java b/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/ExpiredMenu.java index 5505bf4..6d2e52e 100644 --- a/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/ExpiredMenu.java +++ b/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/ExpiredMenu.java @@ -53,7 +53,7 @@ public class ExpiredMenu extends Holder { this.items = this.userManager.getExpiredItems().get(this.player.getUniqueId()); - this.maxPages = getExpiredMaxPages(this.items); + this.maxPages = getExpiredMaxPages(this.items == null ? new ArrayList<>() : this.items); for (final String key : this.options) { if (!this.config.contains("Settings.GUISettings.OtherSettings." + key)) {