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

Add null check to prevent service from crashing #7

Merged
merged 1 commit into from
Jul 3, 2017

Conversation

adamvoss
Copy link
Contributor

Strings.startsWith throws on null values. As a result, JSON Language Server will crash if $schema is set to null. This change adds appropriate checking so the service fails gracefully.

`Strings.startsWith` throws on null values.  As a result, JSON Language Server will crash if `$schema` is set to `null`.  This change adds appropriate checking so the service fails gracefully.
@msftclas
Copy link

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

@aeschli
Copy link
Contributor

aeschli commented Jul 3, 2017

Thanks a lot, @adamvoss !

@aeschli aeschli added this to the July 2017 milestone Jul 3, 2017
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

3 participants