frogermcs / GithubClient

Example of Github API client implemented on top of Dagger 2 DI framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How user component is restored?

drobyshys opened this issue · comments

commented

What if user opens RepositoriesListActivity and then goes in background. System can kill application process, and then when user will try to open app back to foreground - RepositoriesListActivity will be restored and GithubClientApplication.get(this).getUserComponent() will return null object, which will produce nullpointer exception. Is am I missing something?