{"action":"created","issue":{"url":"https://api.github.com/repos/blockstack/blockstack-android/issues/38","repository_url":"https://api.github.com/repos/blockstack/blockstack-android","labels_url":"https://api.github.com/repos/blockstack/blockstack-android/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/blockstack/blockstack-android/issues/38/comments","events_url":"https://api.github.com/repos/blockstack/blockstack-android/issues/38/events","html_url":"https://github.com/blockstack/blockstack-android/issues/38","id":340402559,"node_id":"MDU6SXNzdWUzNDA0MDI1NTk=","number":38,"title":"loadUserData throws exception if not logged in","user":{"login":"friedger","id":1449049,"node_id":"MDQ6VXNlcjE0NDkwNDk=","avatar_url":"https://avatars1.githubusercontent.com/u/1449049?v=4","gravatar_id":"","url":"https://api.github.com/users/friedger","html_url":"https://github.com/friedger","followers_url":"https://api.github.com/users/friedger/followers","following_url":"https://api.github.com/users/friedger/following{/other_user}","gists_url":"https://api.github.com/users/friedger/gists{/gist_id}","starred_url":"https://api.github.com/users/friedger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/friedger/subscriptions","organizations_url":"https://api.github.com/users/friedger/orgs","repos_url":"https://api.github.com/users/friedger/repos","events_url":"https://api.github.com/users/friedger/events{/privacy}","received_events_url":"https://api.github.com/users/friedger/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-11T20:59:14Z","updated_at":"2018-07-19T06:41:46Z","closed_at":"2018-07-19T06:41:46Z","author_association":"COLLABORATOR","body":"\r\nWhen loadUserData is called before the user is logged in the following exception is thrown:\r\n\r\n```\r\nCaused by: org.json.JSONException: Value null of type org.json.JSONObject$1 cannot be converted to JSONObject\r\n        at org.json.JSON.typeMismatch(JSON.java:111)\r\n        at org.json.JSONObject.<init>(JSONObject.java:160)\r\n        at org.json.JSONObject.<init>(JSONObject.java:173)\r\n        at org.blockstack.android.sdk.BlockstackSession$loadUserData$1.onReceiveValue(BlockstackSession.kt:104)\r\n```"},"comment":{"url":"https://api.github.com/repos/blockstack/blockstack-android/issues/comments/406171266","html_url":"https://github.com/blockstack/blockstack-android/issues/38#issuecomment-406171266","issue_url":"https://api.github.com/repos/blockstack/blockstack-android/issues/38","id":406171266,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjE3MTI2Ng==","user":{"login":"larrysalibra","id":597182,"node_id":"MDQ6VXNlcjU5NzE4Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/597182?v=4","gravatar_id":"","url":"https://api.github.com/users/larrysalibra","html_url":"https://github.com/larrysalibra","followers_url":"https://api.github.com/users/larrysalibra/followers","following_url":"https://api.github.com/users/larrysalibra/following{/other_user}","gists_url":"https://api.github.com/users/larrysalibra/gists{/gist_id}","starred_url":"https://api.github.com/users/larrysalibra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larrysalibra/subscriptions","organizations_url":"https://api.github.com/users/larrysalibra/orgs","repos_url":"https://api.github.com/users/larrysalibra/repos","events_url":"https://api.github.com/users/larrysalibra/events{/privacy}","received_events_url":"https://api.github.com/users/larrysalibra/received_events","type":"User","site_admin":false},"created_at":"2018-07-19T06:41:46Z","updated_at":"2018-07-19T06:41:46Z","author_association":"MEMBER","body":"Fixed thanks to @friedger 's pull request."}}
{"actor":{"display_login":"larrysalibra"}}