You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the issue
After sign out, if we sign in again, app crashes
To Reproduce or Feature details
Steps to reproduce the behavior:
Go to Settings
Click on Sign out
Try to Sign in again
Boom
Logs
E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.amahi.anywhere, PID: 30957
java.lang.IllegalArgumentException: context is null
at android.accounts.AccountManager.get(AccountManager.java:449)
at org.amahi.anywhere.fragment.NavigationFragment.getAccountManager(NavigationFragment.java:132)
at org.amahi.anywhere.fragment.NavigationFragment.getAccounts(NavigationFragment.java:168)
at org.amahi.anywhere.fragment.NavigationFragment.setUpAuthenticationToken(NavigationFragment.java:176)
at org.amahi.anywhere.fragment.NavigationFragment.run(NavigationFragment.java:191)
at android.accounts.AccountManager$18.run(AccountManager.java:2176)
at android.os.Handler.handleCallback(Handler.java:808)
at android.os.Handler.dispatchMessage(Handler.java:101)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7529)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
Expected behavior
App should not crash.
Smartphone :
Device: huawei honor 7x
OS: Oreo (8.0)
Additional context
Actually, there's no problem in signing in part, except that the NavigationFragment is getting a null Context due to which the exception arises and hence the crash.
Describe the issue
After sign out, if we sign in again, app crashes
To Reproduce or Feature details
Steps to reproduce the behavior:
Logs
E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.amahi.anywhere, PID: 30957
java.lang.IllegalArgumentException: context is null
at android.accounts.AccountManager.get(AccountManager.java:449)
at org.amahi.anywhere.fragment.NavigationFragment.getAccountManager(NavigationFragment.java:132)
at org.amahi.anywhere.fragment.NavigationFragment.getAccounts(NavigationFragment.java:168)
at org.amahi.anywhere.fragment.NavigationFragment.setUpAuthenticationToken(NavigationFragment.java:176)
at org.amahi.anywhere.fragment.NavigationFragment.run(NavigationFragment.java:191)
at android.accounts.AccountManager$18.run(AccountManager.java:2176)
at android.os.Handler.handleCallback(Handler.java:808)
at android.os.Handler.dispatchMessage(Handler.java:101)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7529)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
Expected behavior
App should not crash.
Smartphone :
Additional context
Actually, there's no problem in signing in part, except that the NavigationFragment is getting a null Context due to which the exception arises and hence the crash.
@cpg I am working to fix this :-)
The text was updated successfully, but these errors were encountered: