File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
src/main/java/graphql/servlet Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -80,17 +80,23 @@ private Builder(GraphQLInvocationInputFactory invocationInputFactory) {
80
80
}
81
81
82
82
public Builder with (GraphQLQueryInvoker queryInvoker ) {
83
- this .queryInvoker = queryInvoker ;
83
+ if (queryInvoker != null ) {
84
+ this .queryInvoker = queryInvoker ;
85
+ }
84
86
return this ;
85
87
}
86
88
87
89
public Builder with (GraphQLObjectMapper objectMapper ) {
88
- this .objectMapper = objectMapper ;
90
+ if (objectMapper != null ) {
91
+ this .objectMapper = objectMapper ;
92
+ }
89
93
return this ;
90
94
}
91
95
92
96
public Builder with (List <GraphQLServletListener > listeners ) {
93
- this .listeners = Objects .requireNonNull (listeners , "listeners must not be null" );
97
+ if (listeners != null ) {
98
+ this .listeners = listeners ;
99
+ }
94
100
return this ;
95
101
}
96
102
You can’t perform that action at this time.
0 commit comments