nextcloud / android

📱 Nextcloud Android app
https://play.google.com/store/apps/details?id=com.nextcloud.client
GNU General Public License v2.0
4.16k stars 1.75k forks source link

Crash: NPE in `com.nextcloud.common.NextcloudClient.<init>` #10475

Open lifeodyssey opened 2 years ago

lifeodyssey commented 2 years ago

Cause of error

Exception in thread "Thread-4" java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter userId
    at com.nextcloud.common.NextcloudClient.<init>(Unknown Source:8)
    at com.owncloud.android.lib.common.OwnCloudClientFactory.createNextcloudClient(OwnCloudClientFactory.java:184)
    at com.owncloud.android.lib.common.OwnCloudClientManager.getNextcloudClientFor(OwnCloudClientManager.java:220)
    at com.owncloud.android.ui.activity.DrawerActivity.lambda$getAndDisplayUserQuota$4$com-owncloud-android-ui-activity-DrawerActivity(DrawerActivity.java:821)
    at com.owncloud.android.ui.activity.DrawerActivity$$ExternalSyntheticLambda2.run(Unknown Source:2)
    at java.lang.Thread.run(Thread.java:929)

App information

Device information

Firmware

joshtrichards commented 3 weeks ago

Looks like #8233 & #8370, but...

Is this reproducible, @strugee @lifeodyssey ?

https://github.com/nextcloud/android/issues/8233#issuecomment-832625565

strugee commented 3 weeks ago

No clue, I just changed the title here while trawling through the issue tracker for duplicated crash reports. I didn't do any testing (and am not the original reporter).

joshtrichards commented 3 weeks ago

Oops, I didn't glance high enough; I thought you were the OP sorry. :-)