Patch up potential NPE in ExtractionHandler. Closes #741
This commit is contained in:
parent
a21dfb7b5e
commit
4b82788976
1 changed files with 4 additions and 2 deletions
|
@ -242,7 +242,8 @@ public class BuildCraftTransport {
|
||||||
for (int j = 0; j < excludedItemBlocks.length; ++j) {
|
for (int j = 0; j < excludedItemBlocks.length; ++j) {
|
||||||
excludedItemBlocks[j] = excludedItemBlocks[j].trim();
|
excludedItemBlocks[j] = excludedItemBlocks[j].trim();
|
||||||
}
|
}
|
||||||
}
|
} else
|
||||||
|
excludedItemBlocks = new String[0];
|
||||||
|
|
||||||
Property exclusionLiquidList = BuildCraftCore.mainConfiguration.get(Configuration.CATEGORY_BLOCK, "woodenPipe.liquid.exclusion", 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) {
|
for (int j = 0; j < excludedLiquidBlocks.length; ++j) {
|
||||||
excludedLiquidBlocks[j] = excludedLiquidBlocks[j].trim();
|
excludedLiquidBlocks[j] = excludedLiquidBlocks[j].trim();
|
||||||
}
|
}
|
||||||
}
|
} else
|
||||||
|
excludedLiquidBlocks = new String[0];
|
||||||
|
|
||||||
PipeManager.registerExtractionHandler(new ExtractionHandler(excludedItemBlocks, excludedLiquidBlocks));
|
PipeManager.registerExtractionHandler(new ExtractionHandler(excludedItemBlocks, excludedLiquidBlocks));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue