{"action":"created","issue":{"url":"https://api.github.com/repos/greenrobot/greenDAO/issues/304","repository_url":"https://api.github.com/repos/greenrobot/greenDAO","labels_url":"https://api.github.com/repos/greenrobot/greenDAO/issues/304/labels{/name}","comments_url":"https://api.github.com/repos/greenrobot/greenDAO/issues/304/comments","events_url":"https://api.github.com/repos/greenrobot/greenDAO/issues/304/events","html_url":"https://github.com/greenrobot/greenDAO/issues/304","id":136329664,"number":304,"title":"DaoSession must be set during content provider is active","user":{"login":"shawyou","id":15062764,"avatar_url":"https://avatars.githubusercontent.com/u/15062764?v=3","gravatar_id":"","url":"https://api.github.com/users/shawyou","html_url":"https://github.com/shawyou","followers_url":"https://api.github.com/users/shawyou/followers","following_url":"https://api.github.com/users/shawyou/following{/other_user}","gists_url":"https://api.github.com/users/shawyou/gists{/gist_id}","starred_url":"https://api.github.com/users/shawyou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawyou/subscriptions","organizations_url":"https://api.github.com/users/shawyou/orgs","repos_url":"https://api.github.com/users/shawyou/repos","events_url":"https://api.github.com/users/shawyou/events{/privacy}","received_events_url":"https://api.github.com/users/shawyou/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-02-25T09:27:53Z","updated_at":"2016-07-04T11:32:51Z","closed_at":"2016-07-04T11:32:51Z","body":"My app sometimes get the error “DaoSession must be set during content provider is active”.\r\ncann't Greendao inited in async thread?"},"comment":{"url":"https://api.github.com/repos/greenrobot/greenDAO/issues/comments/230270223","html_url":"https://github.com/greenrobot/greenDAO/issues/304#issuecomment-230270223","issue_url":"https://api.github.com/repos/greenrobot/greenDAO/issues/304","id":230270223,"user":{"login":"greenrobot-team","id":13865709,"avatar_url":"https://avatars.githubusercontent.com/u/13865709?v=3","gravatar_id":"","url":"https://api.github.com/users/greenrobot-team","html_url":"https://github.com/greenrobot-team","followers_url":"https://api.github.com/users/greenrobot-team/followers","following_url":"https://api.github.com/users/greenrobot-team/following{/other_user}","gists_url":"https://api.github.com/users/greenrobot-team/gists{/gist_id}","starred_url":"https://api.github.com/users/greenrobot-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greenrobot-team/subscriptions","organizations_url":"https://api.github.com/users/greenrobot-team/orgs","repos_url":"https://api.github.com/users/greenrobot-team/repos","events_url":"https://api.github.com/users/greenrobot-team/events{/privacy}","received_events_url":"https://api.github.com/users/greenrobot-team/received_events","type":"User","site_admin":false},"created_at":"2016-07-04T11:32:51Z","updated_at":"2016-07-04T11:32:51Z","body":"I suppose you have to set a value to `SimpleEntityContentProvider.daoSession` in your content provider `onCreate()`. Otherwise it will remain `null`.\r\n\r\nHave a look at the [source of `SimpleEntityContentProvider`](https://github.com/greenrobot/greenDAO/blob/V2.1.0/DaoTest/src-gen/de/greenrobot/daotest/SimpleEntityContentProvider.java#L47-L51). Keep in mind though that greenDAO does not officially support content providers."}}
{"actor":{"display_login":"greenrobot-team"}}