Skip to content

Commit

Permalink
add a null check for category
Browse files Browse the repository at this point in the history
  • Loading branch information
ryderbelserion committed Oct 12, 2024
1 parent 6a08ec0 commit d015646
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ private void fetch(final ConfigurationSection auction, final String seller) {

final ItemBuilder itemBuilder = ItemBuilder.convertItemStack(item);

if (this.category != Category.NONE && !this.category.getItems().contains(itemBuilder.getMaterial())) return;
if (this.category != null && this.category != Category.NONE && !this.category.getItems().contains(itemBuilder.getMaterial())) return;

final long price = auction.getLong("Price");

Expand Down

0 comments on commit d015646

Please sign in to comment.