Skip to content

Commit

Permalink
Merge pull request quarkusio#19993 from famod/npe-qte-2.2
Browse files Browse the repository at this point in the history
Fix NPE in QuarkusTestExtension.runAfterAllCallbacks() on failed boot (2.2)
  • Loading branch information
famod authored Sep 8, 2021
2 parents f5e57a5 + c58e113 commit 4ff9b61
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,7 @@ public void afterAll(ExtensionContext context) throws Exception {
}

private void runAfterAllCallbacks(ExtensionContext context) throws Exception {
if (isNativeOrIntegrationTest(context.getRequiredTestClass())) {
if (isNativeOrIntegrationTest(context.getRequiredTestClass()) || failedBoot) {
return;
}
if (afterAllCallbacks.isEmpty()) {
Expand Down

0 comments on commit 4ff9b61

Please sign in to comment.