aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGlodBlock <60341015+GlodBlock@users.noreply.github.com>2021-09-27 20:40:35 +0800
committerGitHub <noreply@github.com>2021-09-27 20:40:35 +0800
commitf52fcad7f05478a12e35512a8bc08981dff6f5fd (patch)
tree22918d3c02788824d4abfda9880abb487f09dc26 /src
parentf0e20a9fe4d987f0116b72e2e04750e1d191790e (diff)
downloadGT5-Unofficial-f52fcad7f05478a12e35512a8bc08981dff6f5fd.tar.gz
GT5-Unofficial-f52fcad7f05478a12e35512a8bc08981dff6f5fd.tar.bz2
GT5-Unofficial-f52fcad7f05478a12e35512a8bc08981dff6f5fd.zip
fix NPE
this PR must be merged before this: https://github.com/GTNewHorizons/GT5-Unofficial/pull/673
Diffstat (limited to 'src')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_BlastSmelterGT_GTNH.java6
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);