{"action":"created","issue":{"url":"https://api.github.com/repos/yatatsu/AutoBundle/issues/18","repository_url":"https://api.github.com/repos/yatatsu/AutoBundle","labels_url":"https://api.github.com/repos/yatatsu/AutoBundle/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/yatatsu/AutoBundle/issues/18/comments","events_url":"https://api.github.com/repos/yatatsu/AutoBundle/issues/18/events","html_url":"https://github.com/yatatsu/AutoBundle/issues/18","id":193035430,"number":18,"title":"IllegalStateException ","user":{"login":"ssyijiu","id":15868622,"avatar_url":"https://avatars.githubusercontent.com/u/15868622?v=3","gravatar_id":"","url":"https://api.github.com/users/ssyijiu","html_url":"https://github.com/ssyijiu","followers_url":"https://api.github.com/users/ssyijiu/followers","following_url":"https://api.github.com/users/ssyijiu/following{/other_user}","gists_url":"https://api.github.com/users/ssyijiu/gists{/gist_id}","starred_url":"https://api.github.com/users/ssyijiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssyijiu/subscriptions","organizations_url":"https://api.github.com/users/ssyijiu/orgs","repos_url":"https://api.github.com/users/ssyijiu/repos","events_url":"https://api.github.com/users/ssyijiu/events{/privacy}","received_events_url":"https://api.github.com/users/ssyijiu/received_events","type":"User","site_admin":false},"labels":[{"id":263696489,"url":"https://api.github.com/repos/yatatsu/AutoBundle/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-02T05:06:37Z","updated_at":"2016-12-02T06:58:57Z","closed_at":null,"body":"I use the follow code in Activity#onCreate\r\n```\r\n        if (savedInstanceState != null) {\r\n             AutoBundle.bind(this, savedInstanceState);\r\n        } else if(getIntent() != null){\r\n            AutoBundle.bind(this, getIntent());\r\n        }\r\n```\r\nand  `@AutoBundleField String status,name,password;`\r\nthe `name` and `password` I get from a Intent, the `status` I only want to Save The State, when I first open the Acticity from other activity,`AutoBundle.bind(this, getIntent())` execute  , and I don't put the `status` in intent, finally  there is a IllegalStateException .\r\n\r\nI find the cause:\r\n```\r\nif (source.containsKey(\"status\")) {\r\n      target.status = (String) source.getString(\"status\");\r\n    } else {\r\n      throw new IllegalStateException(\"status is required, but not found in the bundle.\");\r\n    }\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/yatatsu/AutoBundle/issues/comments/264387541","html_url":"https://github.com/yatatsu/AutoBundle/issues/18#issuecomment-264387541","issue_url":"https://api.github.com/repos/yatatsu/AutoBundle/issues/18","id":264387541,"user":{"login":"ssyijiu","id":15868622,"avatar_url":"https://avatars.githubusercontent.com/u/15868622?v=3","gravatar_id":"","url":"https://api.github.com/users/ssyijiu","html_url":"https://github.com/ssyijiu","followers_url":"https://api.github.com/users/ssyijiu/followers","following_url":"https://api.github.com/users/ssyijiu/following{/other_user}","gists_url":"https://api.github.com/users/ssyijiu/gists{/gist_id}","starred_url":"https://api.github.com/users/ssyijiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssyijiu/subscriptions","organizations_url":"https://api.github.com/users/ssyijiu/orgs","repos_url":"https://api.github.com/users/ssyijiu/repos","events_url":"https://api.github.com/users/ssyijiu/events{/privacy}","received_events_url":"https://api.github.com/users/ssyijiu/received_events","type":"User","site_admin":false},"created_at":"2016-12-02T06:58:57Z","updated_at":"2016-12-02T06:58:57Z","body":"Thanks for your answer .  It solved my problem perfectly."}}
{"actor":{"display_login":"ssyijiu"}}