{"action":"created","issue":{"url":"https://api.github.com/repos/evant/rxloader/issues/17","labels_url":"https://api.github.com/repos/evant/rxloader/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/evant/rxloader/issues/17/comments","events_url":"https://api.github.com/repos/evant/rxloader/issues/17/events","html_url":"https://github.com/evant/rxloader/pull/17","id":65637147,"number":17,"title":"Don't save null-value items","user":{"login":"almozavr","id":780153,"avatar_url":"https://avatars.githubusercontent.com/u/780153?v=3","gravatar_id":"","url":"https://api.github.com/users/almozavr","html_url":"https://github.com/almozavr","followers_url":"https://api.github.com/users/almozavr/followers","following_url":"https://api.github.com/users/almozavr/following{/other_user}","gists_url":"https://api.github.com/users/almozavr/gists{/gist_id}","starred_url":"https://api.github.com/users/almozavr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almozavr/subscriptions","organizations_url":"https://api.github.com/users/almozavr/orgs","repos_url":"https://api.github.com/users/almozavr/repos","events_url":"https://api.github.com/users/almozavr/events{/privacy}","received_events_url":"https://api.github.com/users/almozavr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-01T08:57:27Z","updated_at":"2015-04-10T07:16:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/evant/rxloader/pulls/17","html_url":"https://github.com/evant/rxloader/pull/17","diff_url":"https://github.com/evant/rxloader/pull/17.diff","patch_url":"https://github.com/evant/rxloader/pull/17.patch"},"body":"Saving null-value item makes loader's callback trigger onNext with null as argument. So If you just do nothing, but went out of activity, it was killed, you come back and oops, your onNext was triggered just like it had result, but it doesn't.\r\nE.g.\r\n```java\r\n@Override protected void onLoad(Bundle savedInstanceState) {\r\n            RxLoaderManager loaderManager = RxLoaderManager.get(activityHolder.getActivity());\r\n            loginLoader = loaderManager.create((LoginParams params) -> {\r\n                        return sessionManager.login(params);\r\n                    },\r\n                    new RxLoaderObserver<Session>() {\r\n                        @Override public void onNext(Session value) {\r\n                            Flow.get(getView()).replaceTo(new HomeScreen());\r\n                        }\r\n                    }\r\n            ).save();\r\n        }\r\n```"},"comment":{"url":"https://api.github.com/repos/evant/rxloader/issues/comments/91461052","html_url":"https://github.com/evant/rxloader/pull/17#issuecomment-91461052","issue_url":"https://api.github.com/repos/evant/rxloader/issues/17","id":91461052,"user":{"login":"almozavr","id":780153,"avatar_url":"https://avatars.githubusercontent.com/u/780153?v=3","gravatar_id":"","url":"https://api.github.com/users/almozavr","html_url":"https://github.com/almozavr","followers_url":"https://api.github.com/users/almozavr/followers","following_url":"https://api.github.com/users/almozavr/following{/other_user}","gists_url":"https://api.github.com/users/almozavr/gists{/gist_id}","starred_url":"https://api.github.com/users/almozavr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almozavr/subscriptions","organizations_url":"https://api.github.com/users/almozavr/orgs","repos_url":"https://api.github.com/users/almozavr/repos","events_url":"https://api.github.com/users/almozavr/events{/privacy}","received_events_url":"https://api.github.com/users/almozavr/received_events","type":"User","site_admin":false},"created_at":"2015-04-10T07:16:55Z","updated_at":"2015-04-10T07:16:55Z","body":"The problem as I see it is outState bundle is not empty but has a key with null value, so the check for null-ness somewhere inside the lib doesn't work (bundle is not  empty, it has key). This is a quick fix, so possibly yes, there is a better way."}}