Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException in AccServ.onAccessibilityEvent when pressing home button #74

Open
Meems33 opened this issue Oct 17, 2020 · 0 comments

Comments

@Meems33
Copy link

Meems33 commented Oct 17, 2020

Describe the bug
NPE in AccServ.onAccessibilityEvent when package context for an accessibility event is null

To Reproduce
Steps to reproduce the behaviour:

  1. Hit home button
  2. Error pops up in notification bar (sometimes)

Expected behaviour
No errors :)

Launcher Hijack Version and Device
4.0.3
Fire HD 10 9th gen

Logs

java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Object.equals(java.lang.Object)' on a null object reference
    at com.baronkiko.launcherhijack.AccServ.onAccessibilityEvent(AccServ.java:31)
    at android.accessibilityservice.AccessibilityService$2.onAccessibilityEvent(AccessibilityService.java:1538)
    at android.accessibilityservice.AccessibilityService$IAccessibilityServiceClientWrapper.executeMessage(AccessibilityService.java:1724)
    at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:37)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:193)
    at android.app.ActivityThread.main(ActivityThread.java:6734)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

Additional context
Fixed with #73

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

No branches or pull requests

1 participant