We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81ce627 commit f9776ebCopy full SHA for f9776eb
src/main/java/graphql/servlet/GraphQLConfiguration.java
@@ -80,17 +80,23 @@ private Builder(GraphQLInvocationInputFactory invocationInputFactory) {
80
}
81
82
public Builder with(GraphQLQueryInvoker queryInvoker) {
83
- this.queryInvoker = queryInvoker;
+ if (queryInvoker != null) {
84
+ this.queryInvoker = queryInvoker;
85
+ }
86
return this;
87
88
89
public Builder with(GraphQLObjectMapper objectMapper) {
- this.objectMapper = objectMapper;
90
+ if (objectMapper != null) {
91
+ this.objectMapper = objectMapper;
92
93
94
95
96
public Builder with(List<GraphQLServletListener> listeners) {
- this.listeners = Objects.requireNonNull(listeners, "listeners must not be null");
97
+ if (listeners != null) {
98
+ this.listeners = listeners;
99
100
101
102
0 commit comments