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

tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    ImageButton to open a new activity

    Stack Overflow | 3 months 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 | 3 months 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.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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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
  6. 0

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

    Stack Overflow | 11 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. Indri Yunita 7 times, last 1 month ago
  2. andreeaa marin 184 times, last 2 months ago
  3. Reich 59 times, last 3 months ago
  4. gamebusterz 42 times, last 19 hours ago
  5. Emrah Küçük 3 times, last 3 months ago
42 more registered users
14 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