Skip to content

crash when clicking "update subscription" very fast in home fragment #51

@aviraxp

Description

@aviraxp

java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.ViewGroup$LayoutParams android.view.View.getLayoutParams()' on a null object reference
at androidx.recyclerview.widget.RecyclerView$LayoutManager.getPosition(SourceFile:1)
at androidx.recyclerview.widget.LinearLayoutManager.findViewByPosition(null:27)
at io.nekohasekai.sagernet.ui.ConfigurationFragment$GroupFragment$ConfigurationAdapter.onUpdated(SourceFile:2)
at io.nekohasekai.sagernet.database.ProfileManager$postTrafficUpdated$2.invokeSuspend(null:34)
at io.nekohasekai.sagernet.database.ProfileManager$postTrafficUpdated$2.invoke(SourceFile:1)
at io.nekohasekai.sagernet.database.ProfileManager$postTrafficUpdated$2.invoke(SourceFile:2)
at io.nekohasekai.sagernet.database.ProfileManager.iterator(null:92)
at io.nekohasekai.sagernet.database.ProfileManager.postTrafficUpdated(null:6)
at io.nekohasekai.sagernet.ui.MainActivity$trafficUpdated$1.invokeSuspend(null:32)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(null:8)
at kotlinx.coroutines.DispatchedTask.run(null:94)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(SourceFile:96)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions