From 1627dace8324afc0180b2c7220cfa519ff991339 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 27 Jun 2016 18:36:59 +0200 Subject: [PATCH] Fixed a crash when searching in the booklet Closes #133 --- .../de/ellpeck/actuallyadditions/mod/booklet/BookletUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }