diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/BookletUtils.java b/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/BookletUtils.java index 5709c42d7..02bd16056 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/BookletUtils.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/BookletUtils.java @@ -233,7 +233,7 @@ public final class BookletUtils{ ItemStack[] pageStacks = page.getItemStacksForPage(); if(pageStacks != null){ for(ItemStack stack : pageStacks){ - if(stack.getDisplayName().toLowerCase(Locale.ROOT).contains(text)){ + if(stack != null && stack.getDisplayName().toLowerCase(Locale.ROOT).contains(text)){ return true; } }