java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.example.cwapp/com.android.example.cwapp.Places_mainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference

  1. 0

    ImageButton to open a new activity

    Stack Overflow | 1 week ago | George X Replay
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.example.cwapp/com.android.example.cwapp.Places_mainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference
  2. 0

    NullPointer Exception ListView

    Stack Overflow | 4 weeks ago | Adrien
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.xxx.xxx/com.example.xxx.xxx.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference
  3. 0

    ListView.set.adapter cause NullPointerException

    Stack Overflow | 1 year ago | Tony
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.project.myapplication/com.example.project.myapplication.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ListView.setAdapter on a null object reference

    Stack Overflow | 1 year ago | Dustin Knight
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.project/com.example.project.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference
  6. 0

    having trouble linking my arrayadapter to send to my activity_juice_menu.xml

    Stack Overflow | 9 months ago | Cosmo
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.vitoriano_vaz.easybayvapes/com.example.vitoriano_vaz.easybayvapes.juiceMenu}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference

  1. andreeaa marin 180 times, last 1 week ago
  2. Reich 59 times, last 6 days ago
  3. gamebusterz 25 times, last 6 days ago
  4. Emrah Küçük 3 times, last 4 weeks ago
  5. Riyaz 2 times, last 1 month ago
43 more registered users
11 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.RuntimeException

    Unable to start activity ComponentInfo{com.android.example.cwapp/com.android.example.cwapp.Places_mainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference

    at android.app.ActivityThread.performLaunchActivity()
  2. Android Platform
    ActivityThread.handleLaunchActivity
    1. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
    2. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
    2 frames