app crashed when adding new account
Hey ho, just switched my nextcloud instance and wanted to add the new account. Followed the dialogue, logged in, granted access and then an error appeared and blocked the app; couldn't log into any other account anymore or try again.
here's the error log:
App Version: 3.7.1
App Version Code: 3007001
App Flavor: fdroid
Files App Version Code: 30230190
---
OS Version: 4.14.261-g9d2fb45d1fc6(c8a8429db6)
OS API Level: 32
Device: flame
Manufacturer: Google
Model (and Product): Pixel 4 (flame)
---
java.lang.NullPointerException: Attempt to invoke virtual method 'int it.niedermann.owncloud.notes.persistence.entity.Account.getColor()' on a null object reference
at it.niedermann.owncloud.notes.main.MainViewModel.postCurrentAccount(MainViewModel.java:123)
at it.niedermann.owncloud.notes.main.MainActivity.lambda$onCreate$0$it-niedermann-owncloud-notes-main-MainActivity(MainActivity.java:175)
at it.niedermann.owncloud.notes.main.MainActivity$$ExternalSyntheticLambda44.run(Unknown Source:4)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7870)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
however, reinstalling the app fixed the issue for me. simply did the same again and it worked :ok_hand:
so not an issue for me anymore, but I thought you may want to know anyways. feel free to close the issue when there's nothing interesting for you in this report :)
thanks for this amazing app! saves me every day :)
@nikolamihaylov-hellio your issue is not "the exact same", it is not even close. Please open a new one or try finding a better matching one. HTTP 404 hints either on a missing Notes app on your server or something might be wrong with your Nextcloud Android App (not Notes Android) setup. Try removing and readding your account in the Nextcloud Android App and then connecting the Notes Android App again.