diff --git a/src/main/java/graphql/servlet/internal/GraphQLRequest.java b/src/main/java/graphql/servlet/internal/GraphQLRequest.java index 95493ee8..c7e3e625 100644 --- a/src/main/java/graphql/servlet/internal/GraphQLRequest.java +++ b/src/main/java/graphql/servlet/internal/GraphQLRequest.java @@ -5,7 +5,6 @@ import java.util.HashMap; import java.util.Map; -import java.util.Objects; /** * @author Andrew Potter @@ -41,7 +40,9 @@ public Map getVariables() { } public void setVariables(Map variables) { - this.variables = Objects.requireNonNull(variables); + if (variables != null) { + this.variables = variables; + } } public String getOperationName() {