bherrmann7 / Car-Cast

Car Cast is a simple Android podcast downloader and player. Optimized for use in a daily commute, it features big buttons, large text, remembers last played location. FOR MORE INFO ---> http://jadn.com/cc/
http://jadn.com/cc/
57 stars 30 forks source link

NPE on send intent #122

Open pforhan opened 9 years ago

pforhan commented 9 years ago

I think (though I haven't confirmed this) that sending the PAUSE command to car cast when it's already paused causes this crash. I have Llama set up to send it to CC when it disconnects from my car's bluetooth.

If I get a chance, I'll dig into the code further.

 java.lang.RuntimeException: Unable to start service com.jadn.cc.services.ContentService@353b99d0 with Intent { cmp=com.jadn.cc/.services.ContentService (has extras) }: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
    at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2906)
    at android.app.ActivityThread.access$2100(ActivityThread.java:144)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1376)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:135)
    at android.app.ActivityThread.main(ActivityThread.java:5246)
    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:899)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
 Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
    at com.jadn.cc.services.ContentService.onStartCommand(ContentService.java:687)
    at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2889)
    ... 9 more
Force finishing activity com.jadn.cc/.ui.CarCast