File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/graphql/schema Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 22
33
44import com .google .common .collect .ImmutableMap ;
5+ import graphql .Assert ;
56import graphql .GraphQLContext ;
67import graphql .Internal ;
78import graphql .collect .ImmutableKit ;
@@ -60,7 +61,7 @@ private DataFetchingEnvironmentImpl(Builder builder) {
6061 this .source = builder .source ;
6162 this .arguments = builder .arguments == null ? ImmutableKit ::emptyMap : builder .arguments ;
6263 this .context = builder .context ;
63- this .graphQLContext = builder .graphQLContext ;
64+ this .graphQLContext = Assert . assertNotNull ( builder .graphQLContext ) ;
6465 this .localContext = builder .localContext ;
6566 this .root = builder .root ;
6667 this .fieldDefinition = builder .fieldDefinition ;
@@ -266,7 +267,7 @@ public static class Builder {
266267
267268 private Object source ;
268269 private Object context ;
269- private GraphQLContext graphQLContext ;
270+ private GraphQLContext graphQLContext = GraphQLContext . newContext (). build () ;
270271 private Object localContext ;
271272 private Object root ;
272273 private GraphQLFieldDefinition fieldDefinition ;
You can’t perform that action at this time.
0 commit comments