Skip to content

Commit

Permalink
Correctly match NULL in BeforeConstant
Browse files Browse the repository at this point in the history
  • Loading branch information
Mumfrey committed Jun 5, 2021
1 parent 99a5199 commit b947316
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ private boolean matchesConstantInsn(AbstractInsnNode insn) {
}

Object value = Bytecode.getConstant(insn);
if (value == null) {
if (value == Type.VOID_TYPE) {
this.log(" BeforeConstant found NULL constant: nullValue = {}", this.nullValue);
return this.nullValue || Constants.OBJECT_DESC.equals(this.matchByType);
} else if (value instanceof Integer) {
Expand Down

0 comments on commit b947316

Please sign in to comment.