Null check on argumentValue in coerceArgumentValues

This commit is contained in:
Tobe O 2019-08-14 11:03:57 -04:00
parent 917477cb89
commit 2ca155375b

View file

@ -404,7 +404,7 @@ class GraphQL {
var argumentValue = argumentValues
.firstWhere((a) => a.name == argumentName, orElse: () => null);
if (argumentValue.value is VariableContext) {
if (argumentValue?.value is VariableContext) {
var variableName = (argumentValue.value as VariableContext).name;
var variableValue = variableValues[variableName];