App Crash on Login
See original GitHub issueSummary:
Login leads to crash of app
Steps to reproduce:
Start App Type in login data. Hit “login” button.
System logs:
STACK_TRACE=java.lang.RuntimeException: Unable to start activity ComponentInfo{fr.free.nrw.commons/fr.free.nrw.commons.contributions.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.accounts.Account.hashCode()' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2678)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2743)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1490)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6165)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:888)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:778)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.accounts.Account.hashCode()' on a null object reference
at android.os.Parcel.readException(Parcel.java:1690)
at android.os.Parcel.readException(Parcel.java:1637)
at android.content.IContentService$Stub$Proxy.setSyncAutomaticallyAsUser(IContentService.java:1060)
at android.content.ContentResolver.setSyncAutomaticallyAsUser(ContentResolver.java:2107)
at android.content.ContentResolver.setSyncAutomatically(ContentResolver.java:2097)
at fr.free.nrw.commons.contributions.MainActivity.initMain(MainActivity.java:110)
at fr.free.nrw.commons.contributions.MainActivity.onCreate(MainActivity.java:84)
at android.app.Activity.performCreate(Activity.java:6687)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1140)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2631)
... 9 more
Device and Android version:
ANDROID_VERSION=7.1.1 PHONE_MODEL=Moto G Play
Commons app version:
APP_VERSION_CODE=561 APP_VERSION_NAME=2.12.3
Would you like to work on the issue?
I don’t have the qualification to work on this issue
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
How to Fix Crashing Apps on an iPhone or Android?
If you have an app that does not respond when you try to interact with it on your smartphone screen, the traditional fix...
Read more >Why do my apps keep crashing on Android, How to fix it
The easiest way to fix an app that keeps crashing on your Android smartphone is to simply force stop it and open it...
Read more >Why Do My Apps Keep Crashing on Android? - Avast
1. The “Force stop” method · 2. Restart your Android device · 3. Keep your phone updated · 4. Clear your cached data...
Read more >app crashing on login button pressed with empty fields
I'm creating an app and in the login class the app stop working when fields are wmpty and pressing login button. Please help...
Read more >The app keeps crashing every time I try to login - Zoho Cares
I've managed to login on my phone, but when I tried to login on my iPad, it literally crashes the moment I tap...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The associated PR has been merged, so the issue is auto-closed. It will be released in the next hotfix, which should be soon.
@misaochan Why has this been closed?
Is it supposed to be fixed (it isn’t on my phone)?
Fixed in the next version?