Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/GraphQL.Authorization/AuthorizationValidationRule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ public Task<INodeVisitor> ValidateAsync(ValidationContext context)
// If some supplied field does not exist in the variable type then some other
// validation rule should check that but here we should just ignore that
// "unknown" field.
if (context.Inputs.TryGetValue(variableRef.Name, out object input) &&
if (context.Inputs != null &&
context.Inputs.TryGetValue(variableRef.Name, out object input) &&
input is Dictionary<string, object> fieldsValues)
{
foreach (var field in variableType.Fields)
Expand Down