Skip to content

Null Pointer Exception in HyperionService.forceDisconnect #225

Closed
@EmmettWilson

Description

Hyperion service can cause application crashes on some configuration changes if they happen before the service can be bound to an activity.

        at com.willowtreeapps.hyperion.core.internal.HyperionService$Connection.forceDisconnect(HyperionService.java:167)
        at com.willowtreeapps.hyperion.core.internal.HyperionServiceLifecycleDelegate.onActivityStopped(HyperionServiceLifecycleDelegate.java:46)
        at com.willowtreeapps.hyperion.core.internal.Lifecycle.onActivityStopped(Lifecycle.java:52)
        at com.willowtreeapps.hyperion.core.internal.HyperionIgnoreFilter.onActivityStopped(HyperionIgnoreFilter.java:54)
        at android.app.Application.dispatchActivityStopped(Application.java:257)
        at android.app.Activity.onStop(Activity.java:1914)
        at androidx.fragment.app.FragmentActivity.onStop(FragmentActivity.java:558)
        at androidx.appcompat.app.AppCompatActivity.onStop(AppCompatActivity.java:216)
        ...
        at android.app.Instrumentation.callActivityOnStop(Instrumentation.java:1432)
        at android.app.Activity.performStop(Activity.java:7367)
        at android.app.ActivityThread.callActivityOnStop(ActivityThread.java:4143)
        at android.app.ActivityThread.handleRelaunchActivityInner(ActivityThread.java:4757)
        at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4693)
        at android.app.servertransaction.ActivityRelaunchItem.execute(ActivityRelaunchItem.java:69)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
        at android.app.ClientTransactionHandler.executeTransaction(ClientTransactionHandler.java:55)
        at android.app.ActivityThread.handleRelaunchActivityLocally(ActivityThread.java:4743)
        at android.app.ActivityThread.access$3200(ActivityThread.java:199)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1818)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:193)
        at android.app.ActivityThread.main(ActivityThread.java:6669)
        at java.lang.reflect.Method.invoke(Method.java:-2)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions