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 on service start #2

Open
RemiNV opened this issue Nov 7, 2015 · 0 comments
Open

NullPointerException on service start #2

RemiNV opened this issue Nov 7, 2015 · 0 comments

Comments

@RemiNV
Copy link
Owner

RemiNV commented Nov 7, 2015

I found the following crash report on the Android Developer Console, from a Galaxy Note 4, Android 5.0. The issue is probably rare, because there has been only one such report in several months.

java.lang.RuntimeException: Unable to start service com.PKH.calendarmute.service.MuteService@3de602f5 with Intent { cmp=com.PKH.calendarmute/.service.MuteService }: java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.database.Cursor.moveToNext()' on a null object reference
        at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3354)
        at android.app.ActivityThread.access$2200(ActivityThread.java:179)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1560)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:145)
        at android.app.ActivityThread.main(ActivityThread.java:5972)
        at java.lang.reflect.Method.invoke(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:372)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
    Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.database.Cursor.moveToNext()' on a null object reference
        at com.PKH.calendarmute.a.a.a(Unknown Source)
        at com.PKH.calendarmute.service.MuteService.onStartCommand(Unknown Source)
        at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3337)
        ... 9 more

Anybody is welcome to look at this bug, this looks pretty simple.
ProGuard obfuscated the com.PKH.calendarmute.a.a.a method, but the bug would probably not be too hard to find even without this information.

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