diff options
author | Martin Robertz <dream-master@gmx.net> | 2021-09-28 06:54:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-28 06:54:20 +0200 |
commit | eaee06acab84af710076eab5d06e6577956796e4 (patch) | |
tree | 22918d3c02788824d4abfda9880abb487f09dc26 /src/Java | |
parent | f0e20a9fe4d987f0116b72e2e04750e1d191790e (diff) | |
parent | f52fcad7f05478a12e35512a8bc08981dff6f5fd (diff) | |
download | GT5-Unofficial-eaee06acab84af710076eab5d06e6577956796e4.tar.gz GT5-Unofficial-eaee06acab84af710076eab5d06e6577956796e4.tar.bz2 GT5-Unofficial-eaee06acab84af710076eab5d06e6577956796e4.zip |
Merge pull request #28 from GTNewHorizons/npe
fix NPE
Diffstat (limited to 'src/Java')
-rw-r--r-- | src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_BlastSmelterGT_GTNH.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_BlastSmelterGT_GTNH.java b/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_BlastSmelterGT_GTNH.java index cabadee87a..63c2d18783 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_BlastSmelterGT_GTNH.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_BlastSmelterGT_GTNH.java @@ -98,12 +98,12 @@ public class RecipeGen_BlastSmelterGT_GTNH { ItemStack validInput = null; ItemStack validOutput = null; //If we the input is an ingot and it and the output are valid, map it to cache. - if (x.mInputs[0] != null) { + if (x.mInputs != null && x.mInputs.length > 0 && x.mInputs[0] != null) { validInput = x.mInputs[0]; } - if (x.mOutputs[0] != null) { + if (x.mOutputs != null && x.mOutputs.length > 0 && x.mOutputs[0] != null) { validOutput = x.mOutputs[0]; - } + } if (validInput != null && validOutput != null) { ItemStackData R1 = new ItemStackData(validInput); ItemStackData R2 = new ItemStackData(validOutput); |