{"action":"created","issue":{"url":"https://api.github.com/repos/gdg-x/frisbee/issues/209","labels_url":"https://api.github.com/repos/gdg-x/frisbee/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/gdg-x/frisbee/issues/209/comments","events_url":"https://api.github.com/repos/gdg-x/frisbee/issues/209/events","html_url":"https://github.com/gdg-x/frisbee/pull/209","id":58480222,"number":209,"title":"Fix content provider app crash","user":{"login":"stefanhoth","id":45467,"avatar_url":"https://avatars.githubusercontent.com/u/45467?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanhoth","html_url":"https://github.com/stefanhoth","followers_url":"https://api.github.com/users/stefanhoth/followers","following_url":"https://api.github.com/users/stefanhoth/following{/other_user}","gists_url":"https://api.github.com/users/stefanhoth/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanhoth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanhoth/subscriptions","organizations_url":"https://api.github.com/users/stefanhoth/orgs","repos_url":"https://api.github.com/users/stefanhoth/repos","events_url":"https://api.github.com/users/stefanhoth/events{/privacy}","received_events_url":"https://api.github.com/users/stefanhoth/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-21T23:40:06Z","updated_at":"2015-02-22T06:52:16Z","closed_at":"2015-02-22T06:51:44Z","pull_request":{"url":"https://api.github.com/repos/gdg-x/frisbee/pulls/209","html_url":"https://github.com/gdg-x/frisbee/pull/209","diff_url":"https://github.com/gdg-x/frisbee/pull/209.diff","patch_url":"https://github.com/gdg-x/frisbee/pull/209.patch"},"body":"With the current develop branch the app crashed on startup for me. Investigation lead to the point in which the content provider tried to access the model cache via the app's instance but this was not created yet so it caused an NPE. \r\n\r\nIt seems the onCreate of the content provider is executed before the app's onCreate is done. To avoid such race conditions I moved the init of the content provider's list into the first query. Since this is already off-main thread I could simplify the call into a synchronous call.\r\n\r\nWith this fix my local version could start again and display the list of GDGs."},"comment":{"url":"https://api.github.com/repos/gdg-x/frisbee/issues/comments/75422889","html_url":"https://github.com/gdg-x/frisbee/pull/209#issuecomment-75422889","issue_url":"https://api.github.com/repos/gdg-x/frisbee/issues/209","id":75422889,"user":{"login":"friedger","id":1449049,"avatar_url":"https://avatars.githubusercontent.com/u/1449049?v=3","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},"created_at":"2015-02-22T06:52:16Z","updated_at":"2015-02-22T06:52:16Z","body":"@stefanhoth I still would like to better understand the problem."}}