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

Commit 4769477

Browse files
committed
Only set errorHandler in supplier if not null (fixes #219)
1 parent 4fc595f commit 4769477

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

graphql-spring-boot-autoconfigure/src/main/java/com/oembedler/moon/graphql/boot/GraphQLWebAutoConfiguration.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ public class GraphQLWebAutoConfiguration {
129129

130130
@PostConstruct
131131
void postConstruct() {
132-
errorHandlerSupplier.setErrorHandler(errorHandler);
132+
if (errorHandler != null) {
133+
errorHandlerSupplier.setErrorHandler(errorHandler);
134+
}
133135
}
134136

135137
@Bean

0 commit comments

Comments
 (0)