mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-21 06:52:14 +00:00
Add an additional stack entry for NPE's ctor arg, closes #158
This commit is contained in:
1 parent
798490cb18
commit
ab6ab96539
1 file changed
+1
@@ -382,6 +382,7 @@ public class RedirectInjector extends InvokeInjector {
|
||||
this.throwException(insns, "java/lang/NullPointerException", this.annotationType + " constructor handler " + this
|
||||
+ " returned null for " + newNode.desc.replace('/', '.'));
|
||||
insns.add(nullCheckSucceeded);
|
||||
target.addToStack(1);
|
||||
} else {
|
||||
// Result is not assigned, so just pop it from the operand stack
|
||||
insns.add(new InsnNode(Opcodes.POP));
|
||||
|
||||
Reference in new issue
Block a user