Skip to content

Mesibo Service onDestroy #66

@adisiji

Description

@adisiji

Hi !
I got this error when app is killed :

Fatal Exception: java.lang.RuntimeException: Unable to stop service com.mesibo.api.MesiboService@155165b: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.content.Intent.prepareToLeaveProcess(android.content.Context)' on a null object reference
       at android.app.ActivityThread.handleStopService(ActivityThread.java:4790)
       at android.app.ActivityThread.access$2000(ActivityThread.java:301)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2191)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loop(Looper.java:246)
       at android.app.ActivityThread.main(ActivityThread.java:8512)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1139)
Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'void android.content.Intent.prepareToLeaveProcess(android.content.Context)' on a null object reference
       at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:603)
       at android.app.PendingIntent.getBroadcast(PendingIntent.java:588)
       at com.mesibo.api.MesiboService.onDestroy(MesiboService.java:77)
       at android.app.ActivityThread.handleStopService(ActivityThread.java:4770)
       at android.app.ActivityThread.access$2000(ActivityThread.java:301)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2191)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loop(Looper.java:246)
       at android.app.ActivityThread.main(ActivityThread.java:8512)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1139)

My Config:
BUILD_TOOLS_VERSION = "29.0.2"
COMPILE_SDK_VERSION = 30
MIN_SDK_VERSION = 21
TARGET_SDK_VERSION = 30

Mesibo version I use:
MESIBO_CALLS = "1.2.90"
MESIBO_API = "1.2.89"
MESIBO_UI = "1.2.89"

Any suggestion for this problem?
Thank you !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions