{"action":"created","issue":{"url":"https://api.github.com/repos/KSP-CKAN/CKAN/issues/1700","repository_url":"https://api.github.com/repos/KSP-CKAN/CKAN","labels_url":"https://api.github.com/repos/KSP-CKAN/CKAN/issues/1700/labels{/name}","comments_url":"https://api.github.com/repos/KSP-CKAN/CKAN/issues/1700/comments","events_url":"https://api.github.com/repos/KSP-CKAN/CKAN/issues/1700/events","html_url":"https://github.com/KSP-CKAN/CKAN/pull/1700","id":152588322,"number":1700,"title":"Avoid unexpected null reference exception","user":{"login":"keyspace","id":18170434,"avatar_url":"https://avatars.githubusercontent.com/u/18170434?v=3","gravatar_id":"","url":"https://api.github.com/users/keyspace","html_url":"https://github.com/keyspace","followers_url":"https://api.github.com/users/keyspace/followers","following_url":"https://api.github.com/users/keyspace/following{/other_user}","gists_url":"https://api.github.com/users/keyspace/gists{/gist_id}","starred_url":"https://api.github.com/users/keyspace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keyspace/subscriptions","organizations_url":"https://api.github.com/users/keyspace/orgs","repos_url":"https://api.github.com/users/keyspace/repos","events_url":"https://api.github.com/users/keyspace/events{/privacy}","received_events_url":"https://api.github.com/users/keyspace/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/KSP-CKAN/CKAN/labels/pull%20request","name":"pull request","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-02T16:21:54Z","updated_at":"2016-05-02T16:42:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/KSP-CKAN/CKAN/pulls/1700","html_url":"https://github.com/KSP-CKAN/CKAN/pull/1700","diff_url":"https://github.com/KSP-CKAN/CKAN/pull/1700.diff","patch_url":"https://github.com/KSP-CKAN/CKAN/pull/1700.patch"},"body":"While traversing possible nested exceptions (added because of #182) it is possible to reach a \"leaf\" where there are no more `InnerException`s. If at this point the exception hasn't been `handle`d, then `log.ErrorFormat` will try to access `exception.Message`. However, due to the `while` loop just above it, `exception` is `null`."},"comment":{"url":"https://api.github.com/repos/KSP-CKAN/CKAN/issues/comments/216288084","html_url":"https://github.com/KSP-CKAN/CKAN/pull/1700#issuecomment-216288084","issue_url":"https://api.github.com/repos/KSP-CKAN/CKAN/issues/1700","id":216288084,"user":{"login":"keyspace","id":18170434,"avatar_url":"https://avatars.githubusercontent.com/u/18170434?v=3","gravatar_id":"","url":"https://api.github.com/users/keyspace","html_url":"https://github.com/keyspace","followers_url":"https://api.github.com/users/keyspace/followers","following_url":"https://api.github.com/users/keyspace/following{/other_user}","gists_url":"https://api.github.com/users/keyspace/gists{/gist_id}","starred_url":"https://api.github.com/users/keyspace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keyspace/subscriptions","organizations_url":"https://api.github.com/users/keyspace/orgs","repos_url":"https://api.github.com/users/keyspace/repos","events_url":"https://api.github.com/users/keyspace/events{/privacy}","received_events_url":"https://api.github.com/users/keyspace/received_events","type":"User","site_admin":false},"created_at":"2016-05-02T16:42:28Z","updated_at":"2016-05-02T16:42:28Z","body":"Please see the referencing issue for more details."}}