{"action":"created","issue":{"url":"https://api.github.com/repos/auth0/Lock.Android/issues/164","repository_url":"https://api.github.com/repos/auth0/Lock.Android","labels_url":"https://api.github.com/repos/auth0/Lock.Android/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/auth0/Lock.Android/issues/164/comments","events_url":"https://api.github.com/repos/auth0/Lock.Android/issues/164/events","html_url":"https://github.com/auth0/Lock.Android/issues/164","id":126593050,"number":164,"title":"The page com.auth0.lock.LockActivity crashes after minimizing the app","user":{"login":"Kolyall","id":3495165,"avatar_url":"https://avatars.githubusercontent.com/u/3495165?v=3","gravatar_id":"","url":"https://api.github.com/users/Kolyall","html_url":"https://github.com/Kolyall","followers_url":"https://api.github.com/users/Kolyall/followers","following_url":"https://api.github.com/users/Kolyall/following{/other_user}","gists_url":"https://api.github.com/users/Kolyall/gists{/gist_id}","starred_url":"https://api.github.com/users/Kolyall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kolyall/subscriptions","organizations_url":"https://api.github.com/users/Kolyall/orgs","repos_url":"https://api.github.com/users/Kolyall/repos","events_url":"https://api.github.com/users/Kolyall/events{/privacy}","received_events_url":"https://api.github.com/users/Kolyall/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-01-14T06:58:19Z","updated_at":"2016-08-05T01:08:06Z","closed_at":null,"body":"The page com.auth0.lock.`LockActivity` crashes with this log.\r\nSteps to reproduce:\r\n\r\n1. start `LockActivity` with this code:\r\n  ```\r\n  Intent lockIntent = new Intent(this, LockActivity.class);\r\n  startActivity(lockIntent);\r\n  ```\r\n2. Minimize your app by clicking on Home button on device.\r\n3. In Android Studio click on \"Terminate Application\"\r\n4. Open your application on device again.\r\nBUG:\r\n App crashes on library.\r\n\r\nLOG:\r\n\r\n```\r\nE/AndroidRuntime: FATAL EXCEPTION: main\r\nProcess: com.github.pires.obd.reader, PID: 10630\r\njava.lang.RuntimeException: Unable to start activity ComponentInfo{com.github.pires.obd.reader/com.auth0.lock.LockActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'com.auth0.core.Connection com.auth0.lock.Configuration.getDefaultDatabaseConnection()' on a null object reference\r\n   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3124)\r\n   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3233)\r\n   at android.app.ActivityThread.access$1000(ActivityThread.java:197)\r\n   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656)\r\n   at android.os.Handler.dispatchMessage(Handler.java:102)\r\n   at android.os.Looper.loop(Looper.java:145)\r\n   at android.app.ActivityThread.main(ActivityThread.java:6856)\r\n   at java.lang.reflect.Method.invoke(Native Method)\r\n   at java.lang.reflect.Method.invoke(Method.java:372)\r\n   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)\r\n   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)\r\nCaused by: java.lang.NullPointerException: Attempt to invoke virtual method 'com.auth0.core.Connection com.auth0.lock.Configuration.getDefaultDatabaseConnection()' on a null object reference\r\n   at com.auth0.lock.fragment.DatabaseLoginFragment.onCreate(DatabaseLoginFragment.java:102)\r\n   at com.auth0.lock.fragment.SocialDBFragment.onCreate(SocialDBFragment.java:42)\r\n   at android.support.v4.app.Fragment.performCreate(Fragment.java:1939)\r\n   at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1029)\r\n   at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1248)\r\n   at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1230)\r\n   at android.support.v4.app.FragmentManagerImpl.dispatchCreate(FragmentManager.java:2037)\r\n   at android.support.v4.app.FragmentController.dispatchCreate(FragmentController.java:154)\r\n   at android.support.v4.app.FragmentActivity.onCreate(FragmentActivity.java:289)\r\n   at com.auth0.lock.LockActivity.onCreate(LockActivity.java:89)\r\n   at android.app.Activity.performCreate(Activity.java:6550)\r\n   at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1120)\r\n   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3077)\r\n   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3233)\r\n   at android.app.ActivityThread.access$1000(ActivityThread.java:197)\r\n   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656)\r\n   at android.os.Handler.dispatchMessage(Handler.java:102)\r\n   at android.os.Looper.loop(Looper.java:145)\r\n   at android.app.ActivityThread.main(ActivityThread.java:6856)\r\n   at java.lang.reflect.Method.invoke(Native Method)\r\n   at java.lang.reflect.Method.invoke(Method.java:372)\r\n   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)\r\n   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199) \r\n```"},"comment":{"url":"https://api.github.com/repos/auth0/Lock.Android/issues/comments/237730137","html_url":"https://github.com/auth0/Lock.Android/issues/164#issuecomment-237730137","issue_url":"https://api.github.com/repos/auth0/Lock.Android/issues/164","id":237730137,"user":{"login":"jayhuang75","id":1512158,"avatar_url":"https://avatars.githubusercontent.com/u/1512158?v=3","gravatar_id":"","url":"https://api.github.com/users/jayhuang75","html_url":"https://github.com/jayhuang75","followers_url":"https://api.github.com/users/jayhuang75/followers","following_url":"https://api.github.com/users/jayhuang75/following{/other_user}","gists_url":"https://api.github.com/users/jayhuang75/gists{/gist_id}","starred_url":"https://api.github.com/users/jayhuang75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayhuang75/subscriptions","organizations_url":"https://api.github.com/users/jayhuang75/orgs","repos_url":"https://api.github.com/users/jayhuang75/repos","events_url":"https://api.github.com/users/jayhuang75/events{/privacy}","received_events_url":"https://api.github.com/users/jayhuang75/received_events","type":"User","site_admin":false},"created_at":"2016-08-05T01:08:06Z","updated_at":"2016-08-05T01:08:06Z","body":"Any update on this?"}}
{"actor":{"display_login":"jayhuang75"}}