Skip to content

Commit

Permalink
Fixed argument non-null validator
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Jan 9, 2020
1 parent 08e3966 commit 9d38680
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Core/Core/Execution/Utilities/ArgumentNonNullValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ public static Report Validate(IType type, IValueNode value, Path path)
}
}

if (innerType is InputObjectType inputType)
if (innerType is InputObjectType inputType && value is ObjectValueNode ov)
{
return ValidateObject(inputType, (ObjectValueNode)value, path);
return ValidateObject(inputType, ov, path);
}

return default;
Expand Down

0 comments on commit 9d38680

Please sign in to comment.