java.lang.NullPointerException

Stack Overflow | technical po | 7 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

    android app crash on setAdapter

    Stack Overflow | 7 months ago | technical po
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.example.ehsan.pooshop2.adapters.CartAdapter$1.onItemSelected()
    2. com.example.ehsan
      CartAdapter$1.onItemSelected
      1. com.example.ehsan.pooshop2.adapters.CartAdapter$1.onItemSelected(CartAdapter.java:136)
      1 frame
    3. Android Platform
      ActivityThread.main
      1. android.widget.AdapterView.fireOnSelected(AdapterView.java:893)
      2. android.widget.AdapterView.access$200(AdapterView.java:48)
      3. android.widget.AdapterView$SelectionNotifier.run(AdapterView.java:861)
      4. android.os.Handler.handleCallback(Handler.java:733)
      5. android.os.Handler.dispatchMessage(Handler.java:95)
      6. android.os.Looper.loop(Looper.java:136)
      7. android.app.ActivityThread.main(ActivityThread.java:5021)
      7 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:827)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:643)
      2 frames
    6. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame