Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit 75fed38

Browse files
author
Tad Sanden
committed
allow errorHandlerSupplier to re-init
1 parent 8ee1479 commit 75fed38

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

graphql-kickstart-spring-support/src/main/java/graphql/kickstart/spring/error/GraphQLErrorStartupListener.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,9 @@ public GraphQLErrorStartupListener(ErrorHandlerSupplier errorHandlerSupplier, bo
1818

1919
@Override
2020
public void onApplicationEvent(@NonNull ContextRefreshedEvent event) {
21-
if (!errorHandlerSupplier.isPresent()) {
2221
ConfigurableApplicationContext context = (ConfigurableApplicationContext) event.getApplicationContext();
2322
GraphQLErrorHandler errorHandler = new GraphQLErrorHandlerFactory().create(context, exceptionHandlersEnabled);
2423
context.getBeanFactory().registerSingleton(errorHandler.getClass().getCanonicalName(), errorHandler);
2524
errorHandlerSupplier.setErrorHandler(errorHandler);
26-
}
2725
}
28-
2926
}

0 commit comments

Comments
 (0)