Skip to content

Add null check to prevent service from crashing - #7

Merged
Martin Aeschlimann (aeschli) merged 1 commit into
microsoft:masterfrom
adamvoss:patch-1
Jul 3, 2017
Merged

Martin Aeschlimann (aeschli) merged 1 commit into
microsoft:masterfrom
adamvoss:patch-1

Conversation

@adamvoss

Copy link
Copy Markdown
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

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
Copy Markdown
Collaborator

Thanks a lot, Adam Voss (@adamvoss) !

@aeschli Martin Aeschlimann (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.

3 participants