Protect from case where globalVars is null
This commit is contained in:
parent
c8f5a0931c
commit
1d33583ddf
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue