add null check

This commit is contained in:
Ryder Belserion 2024-10-31 11:33:35 -04:00
parent 20caac8347
commit 3f52824e5b
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}

View File

@ -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)) {