Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handles isDeprecated not being present in the json #2910

Merged
merged 1 commit into from Aug 9, 2022

Conversation

bbakerman
Copy link
Member

See #2909

This just hardens the code in this case

@bbakerman bbakerman modified the milestones: 20.0, 19.1 Aug 3, 2022
@@ -313,7 +313,7 @@ private List<FieldDefinition> createFields(List<Map<String, Object>> fields) {

private void createDeprecatedDirective(Map<String, Object> field, NodeDirectivesBuilder nodeDirectivesBuilder) {
List<Directive> directives = new ArrayList<>();
if ((Boolean) field.get("isDeprecated")) {
if (Boolean.TRUE.equals(field.get("isDeprecated"))) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

npe if the value is null or some other rubbish

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants