Patch up potential NPE in ExtractionHandler. Closes #741

This commit is contained in:
SirSengir 2013-04-13 18:37:12 +02:00
parent a21dfb7b5e
commit 4b82788976

View file

@ -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));