notes-android icon indicating copy to clipboard operation
notes-android copied to clipboard

app crashes - wrong data from server

Open floriandenz opened this issue 3 years ago • 1 comments

After I started the Nextcloud Notes App, I entered all required login data. After that the following error message (attached screenshot) appears.

Additional crash information:

App Version: 3.7.1
App Version Code: 3007001
App Flavor: play

Files App Version Code: 30240190

---

OS Version: 4.14.116(10.1.0.150C431)
OS API Level: 29
Device: HWELE
Manufacturer: HUAWEI
Model (and Product): ELE-L29 (ELE-L29EEA)

---

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:900)
	at android.os.Handler.dispatchMessage(Handler.java:103)
	at android.os.Looper.loop(Looper.java:219)
	at android.app.ActivityThread.main(ActivityThread.java:8668)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109)

Thanks for your help in advance!

Screenshot_20230225_110208_it niedermann owncloud notes

floriandenz avatar Feb 25 '23 10:02 floriandenz

Did you already try to clear the storage of the Notes Android App as described in the FAQ and import your account again?

Also: Please fill out the issue template instead of deleting it. Valuable information like the version of your Notes Server app is missing.

stefan-niedermann avatar May 16 '23 13:05 stefan-niedermann