Fixed aspectalyzer gui crash. Closes #129

This commit is contained in:
Vasco Lavos committed 2013-12-16 14:24:24 +00:00
1 parent 5ca4786696
commit d9694bd087
1 file changed
+1 -1
@@ -69,7 +69,7 @@ public class GuiAspectAnalyzer extends GuiContainer {
String h = ScanManager.generateItemHash(stack.itemID, stack.getItemDamage());
List<String> list = (List) Thaumcraft.proxy.getScannedObjects().get(ClientHelper.clientPlayer().username);
if (list != null && list.contains("@" + h) || list.contains("#" + h)) {
if (h != null && list != null && (list.contains("@" + h) || list.contains("#" + h))) {
AspectList tags = ThaumcraftCraftingManager.getObjectTags(stack);
tags = ThaumcraftCraftingManager.getBonusTags(stack, tags);
if (tags != null) {