Protect from case where globalVars is null

This commit is contained in:
Tobe O 2019-08-14 00:44:04 -04:00
parent c8f5a0931c
commit 1d33583ddf

View file

@ -377,7 +377,8 @@ class GraphQL {
objectType,
objectValue,
fieldName,
Map<String, dynamic>.from(globalVariables)..addAll(argumentValues));
Map<String, dynamic>.from(globalVariables ?? {})
..addAll(argumentValues ?? {}));
return completeValue(document, fieldName, fieldType, fields, resolvedValue,
variableValues, globalVariables);
}