java.lang.IllegalStateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • onServiceConnected is not calling
    via Stack Overflow by Kushal Patil
    ,
    • java.lang.IllegalStateException: Could not execute method of the activity at android.view.View$1.onClick(View.java:4023) at android.view.View.performClick(View.java:4783) at android.view.View$PerformClick.run(View.java:19887) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5290) 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:908) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:703) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at android.view.View$1.onClick(View.java:4018) ... 10 more Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.kpgames.testmusicplayer.MusicService.setSong(int)' on a null object reference at com.kpgames.testmusicplayer.MainActivity.songPicked(MainActivity.java:90) ... 13 more
    No Bugmate found.