Skip to content

Commit

Permalink
Callback that is generated is null
Browse files Browse the repository at this point in the history
Callback that is generated is a null value not the method executor.
  • Loading branch information
virustotalop committed Jun 28, 2018
1 parent 0fa0091 commit afcfaa7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ public static ClassPool getClassPool()
return JavaAssistMethodExecutor.pool;
}

public MethodCallback getCallBack()
{
return this.callBack;
}

@Override
public void execute(Event event)
{
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/JavaAssistMiscEventTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void classPoolTest()
@Test
public void generateCallbackNullTest()
{
MethodExecutor executor = new JavaAssistMethodExecutor(null, null);
assertTrue("Executor is not null", executor == null);
JavaAssistMethodExecutor executor = new JavaAssistMethodExecutor(null, null);
assertTrue("Executor is not null", executor.getCallBack() == null);
}
}

0 comments on commit afcfaa7

Please sign in to comment.