Skip to content

Commit

Permalink
Add an assertion to AopUtils.KotlinDelegate#invokeSuspendingFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
sdeleuze committed Sep 7, 2023
1 parent b0aa004 commit ada76bd
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ private static class KotlinDelegate {

public static Publisher<?> invokeSuspendingFunction(Method method, Object target, Object... args) {
Continuation<?> continuation = (Continuation<?>) args[args.length -1];
Assert.state(continuation != null, "No Continuation available");
CoroutineContext context = continuation.getContext().minusKey(Job.Key);
return CoroutinesUtils.invokeSuspendingFunction(context, method, target, args);
}
Expand Down

0 comments on commit ada76bd

Please sign in to comment.