Patch to make GetConfigurationValues tolerant of values provided by third party vendors that don't have an Id or Url associated with them #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I signed up for CloudAMQP (RabbitMQ), and was given a config value without an id or url. GetConfigurationValues was throwing a null reference exception because the Url returned with the value from AppHarbor is null. With my change, the API is now tolerant of such missing data, but obviously if I attempt to subsequently retrieve the variable with an Id of 0, I will get a null value back.
If you use your browser and pull https://appharbor.com/applications/YOURAPP/configurationvariables/0, AppHarbor replies with:
{
"key": null,
"value": null
}
Also, when I went to run the tests, it looks like there's a lot of broken tests. I didn't write a test for my change.