Skip to content

Commit

Permalink
Merge pull request #2034 from jaehong-kim/asm-warnings
Browse files Browse the repository at this point in the history
fix NPE.
  • Loading branch information
jaehong-kim authored Sep 1, 2016
2 parents 86d20b4 + ccb5e25 commit 4fd44f0
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ private void copyPointCutMethods(final MethodNodes methodNodes, final ASMClassNo

// remap
final ASMMethodNodeAdapter newMethodNode = classNode.getDeclaredMethod(pointCutMethodNode.getName(), pointCutMethodNode.getDesc());
if (newMethodNode == null) {
throw new InstrumentException("not found new method. " + classNode.getInternalName() + "." + pointCutMethodNode.getName());
}
remapper.setName(methodName);
newMethodNode.remapMethodInsnNode(remapper);
}
Expand Down

0 comments on commit 4fd44f0

Please # to comment.