java.lang.NullPointerException

Stack Overflow | aycanadal | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Reference to service becomes null

    Stack Overflow | 9 months ago | aycanadal
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.zezo.music.MusicPlayerActivity$2.onReceive()
    2. com.zezo.music
      MusicPlayerActivity$2.onReceive
      1. com.zezo.music.MusicPlayerActivity$2.onReceive(MusicPlayerActivity.java:101)
      1 frame
    3. Android Support v4
      LocalBroadcastManager$1.handleMessage
      1. android.support.v4.content.LocalBroadcastManager.executePendingBroadcasts(LocalBroadcastManager.java:297)
      2. android.support.v4.content.LocalBroadcastManager.access$000(LocalBroadcastManager.java:46)
      3. android.support.v4.content.LocalBroadcastManager$1.handleMessage(LocalBroadcastManager.java:116)
      3 frames
    4. Android Platform
      ActivityThread.main
      1. android.os.Handler.dispatchMessage(Handler.java:99)
      2. android.os.Looper.loop(Looper.java:137)
      3. android.app.ActivityThread.main(ActivityThread.java:5103)
      3 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:525)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
      2 frames
    7. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame