Add an additional stack entry for NPE's ctor arg, closes #158

This commit is contained in:
Mumfrey committed 2017-01-01 17:33:38 +00:00
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));