Skip to content
This repository has been archived by the owner on May 21, 2022. It is now read-only.

Null Pointer Exception when nothing is being scrobbled #42

Closed
SeanPONeil opened this issue Aug 15, 2012 · 4 comments
Closed

Null Pointer Exception when nothing is being scrobbled #42

SeanPONeil opened this issue Aug 15, 2012 · 4 comments
Labels
bugs Functionality is broken. Ambiguous.

Comments

@SeanPONeil
Copy link
Contributor

08-15 11:25:58.478: E/AndroidRuntime(14968): FATAL EXCEPTION: main
08-15 11:25:58.478: E/AndroidRuntime(14968): java.lang.RuntimeException: Unable to start service com.adam.aslfms.service.ScrobblingService@4253ed10 with null: java.lang.NullPointerException
08-15 11:25:58.478: E/AndroidRuntime(14968): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2507)
08-15 11:25:58.478: E/AndroidRuntime(14968): at android.app.ActivityThread.access$1900(ActivityThread.java:130)
08-15 11:25:58.478: E/AndroidRuntime(14968): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1292)
08-15 11:25:58.478: E/AndroidRuntime(14968): at android.os.Handler.dispatchMessage(Handler.java:99)
08-15 11:25:58.478: E/AndroidRuntime(14968): at android.os.Looper.loop(Looper.java:137)
08-15 11:25:58.478: E/AndroidRuntime(14968): at android.app.ActivityThread.main(ActivityThread.java:4745)
08-15 11:25:58.478: E/AndroidRuntime(14968): at java.lang.reflect.Method.invokeNative(Native Method)
08-15 11:25:58.478: E/AndroidRuntime(14968): at java.lang.reflect.Method.invoke(Method.java:511)
08-15 11:25:58.478: E/AndroidRuntime(14968): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
08-15 11:25:58.478: E/AndroidRuntime(14968): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
08-15 11:25:58.478: E/AndroidRuntime(14968): at dalvik.system.NativeStart.main(Native Method)
08-15 11:25:58.478: E/AndroidRuntime(14968): Caused by: java.lang.NullPointerException
08-15 11:25:58.478: E/AndroidRuntime(14968): at com.adam.aslfms.service.ScrobblingService.onStart(ScrobblingService.java:84)
08-15 11:25:58.478: E/AndroidRuntime(14968): at android.app.Service.onStartCommand(Service.java:450)
08-15 11:25:58.478: E/AndroidRuntime(14968): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2490)
08-15 11:25:58.478: E/AndroidRuntime(14968): ... 10 more

It looks like the Intent being passed to onStartCommand() is null somewhere?

@tgwizard
Copy link
Collaborator

Hmm, I don't know why it gets null. But shouldn't this already be handled in https://github.com/tgwizard/sls/blob/master/src/com/adam/aslfms/service/ScrobblingService.java , on lines 95-98?

@SeanPONeil
Copy link
Contributor Author

I think you're right. I'm uninstalling/reinstalling from the Market just to make sure I don't have my forked build on my phone :)

@tgwizard
Copy link
Collaborator

@SeanPONeil Can I close this issue?

@SeanPONeil
Copy link
Contributor Author

I haven't seen it come up on the latest build from the Play Store. Let's close it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bugs Functionality is broken. Ambiguous.
Projects
None yet
Development

No branches or pull requests

2 participants