mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2025-02-16 01:42:18 +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.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.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) {
|
for (final String key : this.options) {
|
||||||
if (!this.config.contains("Settings.GUISettings.OtherSettings." + key)) {
|
if (!this.config.contains("Settings.GUISettings.OtherSettings." + key)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user