From 4b827889760af9aaff7213edc57d5b0ad971815b Mon Sep 17 00:00:00 2001 From: SirSengir Date: Sat, 13 Apr 2013 18:37:12 +0200 Subject: [PATCH] Patch up potential NPE in ExtractionHandler. Closes #741 --- common/buildcraft/BuildCraftTransport.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/buildcraft/BuildCraftTransport.java b/common/buildcraft/BuildCraftTransport.java index 3849c364..dde60518 100644 --- a/common/buildcraft/BuildCraftTransport.java +++ b/common/buildcraft/BuildCraftTransport.java @@ -242,7 +242,8 @@ public class BuildCraftTransport { for (int j = 0; j < excludedItemBlocks.length; ++j) { excludedItemBlocks[j] = excludedItemBlocks[j].trim(); } - } + } else + excludedItemBlocks = new String[0]; Property exclusionLiquidList = BuildCraftCore.mainConfiguration.get(Configuration.CATEGORY_BLOCK, "woodenPipe.liquid.exclusion", new String[0]); @@ -251,7 +252,8 @@ public class BuildCraftTransport { for (int j = 0; j < excludedLiquidBlocks.length; ++j) { excludedLiquidBlocks[j] = excludedLiquidBlocks[j].trim(); } - } + } else + excludedLiquidBlocks = new String[0]; PipeManager.registerExtractionHandler(new ExtractionHandler(excludedItemBlocks, excludedLiquidBlocks));