Skip to content

Handle null service intents in onStartCommand#163

Open
Qwerasdzxc wants to merge 4 commits intoX-SLAYER:mainfrom
Qwerasdzxc:main
Open

Handle null service intents in onStartCommand#163
Qwerasdzxc wants to merge 4 commits intoX-SLAYER:mainfrom
Qwerasdzxc:main

Conversation

@Qwerasdzxc
Copy link
Copy Markdown

This should resolve the frequent errors that have been happening:

Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'int android.content.Intent.getIntExtra(java.lang.String, int)' on a null object reference at flutter.overlay.window.flutter_overlay_window.OverlayService.onStartCommand(SourceFile:18) at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:5026) at android.app.ActivityThread.-$$Nest$mhandleServiceArgs() at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2415) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:205) at android.os.Looper.loop(Looper.java:294) at android.app.ActivityThread.main(ActivityThread.java:8492) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:640) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1026)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant