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

Fix JObject SafeAdd to make sure underlying value is not null #1324

Merged
merged 2 commits into from Jul 19, 2015

Conversation

dbent
Copy link
Member

@dbent dbent commented Jul 19, 2015

@techman83 Fix for KSP-CKAN/NetKAN-bot#27

Problem was that converting a null to a JToken still produces a JToken object, but one that represents a null value. This makes sure that if the JToken is not null, that its underlying object is also not null.

Adds a regression test that fails prior to the change and passes after the change.

@dbent dbent changed the title Make sure underlying value is not null Fix JObject SafeAdd to make sure underlying value is not null Jul 19, 2015
@techman83
Copy link
Member

@dbent a fix and a test. Awesome, love your work. LGTM

techman83 added a commit that referenced this pull request Jul 19, 2015
Fix JObject SafeAdd to make sure underlying value is not null
@techman83 techman83 merged commit e4c7d58 into master Jul 19, 2015
@dbent dbent deleted the topic/fix_safe_add branch July 19, 2015 14:24
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