Skip to content

Dark / Light Mode change causing java.lang.NullPointerException at com.pennapps.labs.pennmobile.home.fragments.HomeFragment.getBinding #664

@baronhsieh2005

Description

@baronhsieh2005

When we change to darkmode / lightmode at settings and return to the app, it crashes with nullpointerexception at HomeFragment. The detailed stack trace is as below:

FATAL EXCEPTION: DefaultDispatcher-worker-4 Process: com.pennapps.labs.pennmobile, PID: 6664

java.lang.NullPointerException at com.pennapps.labs.pennmobile.home.fragments.HomeFragment.getBinding(HomeFragment.kt:44) at com.pennapps.labs.pennmobile.home.fragments.HomeFragment$getHomePage$1$1.invokeSuspend(HomeFragment.kt:169) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:811) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:715) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:702) Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@a4e674

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions