Skip to content

AndroidObjectBrowserService Crash #282

@eygraber

Description

@eygraber

Issue Basics

  • ObjectBox version (are using the latest version?): 1.2.1
  • Reproducibility: always

Reproducing the bug

Description

I start the browser when the app starts, then I background the app to open Chrome and go to the browser. After between 10 seconds and 1 minute the app crashes

Logs & stackstraces

11-28 14:50:59.121 19162-19162/? I/ObjectBrowser: ObjectBrowser started: http://localhost:8090/index.html
11-28 14:50:59.121 19162-19162/? I/ObjectBrowser: Command to forward ObjectBrowser to connected host: adb forward tcp:8090 tcp:8090
11-28 14:50:59.333 19162-19162/com.myapp E/AndroidRuntime: FATAL EXCEPTION: main
                                                                     Process: com.myapp, PID: 19162
                                                                     java.lang.RuntimeException: Unable to start service io.objectbox.android.AndroidObjectBrowserService@3914cd8 with null: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Intent.getAction()' on a null object reference
                                                                         at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3556)
                                                                         at android.app.ActivityThread.-wrap20(Unknown Source:0)
                                                                         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1698)
                                                                         at android.os.Handler.dispatchMessage(Handler.java:105)
                                                                         at android.os.Looper.loop(Looper.java:164)
                                                                         at android.app.ActivityThread.main(ActivityThread.java:6541)
                                                                         at java.lang.reflect.Method.invoke(Native Method)
                                                                         at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
                                                                         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
                                                                      Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Intent.getAction()' on a null object reference
                                                                         at io.objectbox.android.AndroidObjectBrowserService.onStartCommand(AndroidObjectBrowserService.java:48)
                                                                         at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3539)
                                                                         at android.app.ActivityThread.-wrap20(Unknown Source:0) 
                                                                         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1698) 
                                                                         at android.os.Handler.dispatchMessage(Handler.java:105) 
                                                                         at android.os.Looper.loop(Looper.java:164) 
                                                                         at android.app.ActivityThread.main(ActivityThread.java:6541) 
                                                                         at java.lang.reflect.Method.invoke(Native Method) 
                                                                         at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) 
                                                                         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767) 

Metadata

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