mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2024-11-22 11:55:12 +01:00
add null check
This commit is contained in:
parent
20caac8347
commit
3f52824e5b
@ -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);
|
||||
}
|
||||
}
|
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user