nextcloud / android

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

Mystery Error #13823

Open qole opened 5 hours ago

qole commented 5 hours ago

This morning I opened my phone to a screen with this error. I don't think that I had the Nextcloud client open when I put it on the charger last night.

Cause of error

Exception in thread "WM.task-1" java.lang.IllegalArgumentException: context is null
    at android.accounts.AccountManager.get(AccountManager.java:458)
    at com.owncloud.android.lib.common.OwnCloudAccount.<init>(OwnCloudAccount.java:63)
    at com.nextcloud.client.account.UserAccountManagerImpl.createUserFromAccount(UserAccountManagerImpl.java:194)
    at com.nextcloud.client.account.UserAccountManagerImpl.getUser(UserAccountManagerImpl.java:236)
    at com.owncloud.android.utils.theme.MaterialSchemesProviderImpl.getMaterialSchemesForCurrentUser(MaterialSchemesProviderImpl.kt:48)
    at com.nextcloud.client.di.ThemeModule$Companion.provideMaterialSchemes(ThemeModule.kt:42)
    at com.nextcloud.client.di.ThemeModule_Companion_ProvideMaterialSchemesFactory.provideMaterialSchemes(ThemeModule_Companion_ProvideMaterialSchemesFactory.java:47)
    at com.nextcloud.client.di.ThemeModule_Companion_ProvideMaterialSchemesFactory.get(ThemeModule_Companion_ProvideMaterialSchemesFactory.java:37)
    at com.nextcloud.client.di.ThemeModule_Companion_ProvideMaterialSchemesFactory.get(ThemeModule_Companion_ProvideMaterialSchemesFactory.java:13)
    at com.owncloud.android.utils.theme.ViewThemeUtils_Factory.get(ViewThemeUtils_Factory.java:39)
    at com.owncloud.android.utils.theme.ViewThemeUtils_Factory.get(ViewThemeUtils_Factory.java:12)
    at com.nextcloud.client.jobs.BackgroundJobFactory.createMediaFoldersDetectionWork(BackgroundJobFactory.kt:202)
    at com.nextcloud.client.jobs.BackgroundJobFactory.createWorker(BackgroundJobFactory.kt:87)
    at androidx.work.WorkerFactory.createWorkerWithDefaultFallback(WorkerFactory.java:82)
    at androidx.work.impl.WorkerWrapper.runWorker(WorkerWrapper.java:243)
    at androidx.work.impl.WorkerWrapper.run(WorkerWrapper.java:144)
    at androidx.work.impl.utils.SerialExecutorImpl$Task.run(SerialExecutorImpl.java:96)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    at java.lang.Thread.run(Thread.java:764)

App information

Device information

Firmware

joshtrichards commented 3 hours ago

Looks like #11026, but this was in theory already fixed. We backported #13080 to v3.29.1 via #13098.

@alperozturk96 Any idea why this would still be happening in 3.29.2?

EDIT: Does it have something to do with 3.29.2 not being a tagged release?