From c53b3b5dfc6d879d14e004f0ad135505e72b2966 Mon Sep 17 00:00:00 2001 From: yueh Date: Wed, 11 Mar 2015 23:57:48 +0100 Subject: [PATCH] Fixes #1011 skip null values --- src/main/java/appeng/util/item/OreHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/appeng/util/item/OreHelper.java b/src/main/java/appeng/util/item/OreHelper.java index 5ed8517b..1f8bc092 100644 --- a/src/main/java/appeng/util/item/OreHelper.java +++ b/src/main/java/appeng/util/item/OreHelper.java @@ -76,8 +76,8 @@ public class OreHelper for ( String ore : OreDictionary.getOreNames() ) { - // skip ore if it is a match already. - if ( toAdd.contains( ore ) ) + // skip ore if it is a match already or null. + if ( ore == null || toAdd.contains( ore ) ) { continue; }