Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mystery Error: IllegalArgumentException: context is null #13823

Open
qole opened this issue Oct 19, 2024 · 1 comment
Open

Mystery Error: IllegalArgumentException: context is null #13823

qole opened this issue Oct 19, 2024 · 1 comment
Labels
bug performance: ISE/IAE 😕 Illegal State Exception / Illegal Argument Exception stable-3.29

Comments

@qole
Copy link

qole commented Oct 19, 2024

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

  • ID: com.nextcloud.client
  • Version: 30290290
  • Build flavor: gplay

Device information

  • Brand: samsung
  • Device: dream2qltecan
  • Model: SM-G955W
  • Id: PPR1.180610.011
  • Product: dream2qltevl

Firmware

  • SDK: 28
  • Release: 9
  • Incremental: G955WVLU8CUF3
@joshtrichards joshtrichards added bug performance: ISE/IAE 😕 Illegal State Exception / Illegal Argument Exception stable-3.29 labels Oct 19, 2024
@joshtrichards
Copy link
Member

joshtrichards commented Oct 19, 2024

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?

@joshtrichards joshtrichards changed the title Mystery Error Mystery Error: IllegalArgumentException: context is null Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug performance: ISE/IAE 😕 Illegal State Exception / Illegal Argument Exception stable-3.29
Projects
None yet
Development

No branches or pull requests

2 participants