Skip to content

Commit

Permalink
Merge pull request quarkusio#23983 from famod/NoSuchElementException
Browse files Browse the repository at this point in the history
Prevent NoSuchElementException in MockSupport after earlier error
  • Loading branch information
famod authored Feb 26, 2022
2 parents d14c12e + 5511255 commit e68c24f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ static void pushContext() {
}

static void popContext() {
if (contexts.isEmpty()) {
return; // can happen on error in QuarkusTestResourceLifecycleManagers etc.
}
List<Object> val = contexts.pop();
for (Object i : val) {
try {
Expand Down

0 comments on commit e68c24f

Please sign in to comment.