Skip to content

Commit

Permalink
Merge pull request #44152 from gsmet/avoid-npe-test
Browse files Browse the repository at this point in the history
Do not throw NPE in AfterAll interceptor if application didn't start
  • Loading branch information
gsmet authored Nov 5, 2024
2 parents 2245430 + 96b0c2f commit f093b41
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ public void interceptAfterEachMethod(Invocation<Void> invocation, ReflectiveInvo
@Override
public void interceptAfterAllMethod(Invocation<Void> invocation, ReflectiveInvocationContext<Method> invocationContext,
ExtensionContext extensionContext) throws Throwable {
if (isNativeOrIntegrationTest(extensionContext.getRequiredTestClass())) {
if (runningQuarkusApplication == null || isNativeOrIntegrationTest(extensionContext.getRequiredTestClass())) {
invocation.proceed();
return;
}
Expand Down

0 comments on commit f093b41

Please sign in to comment.