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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Tadas
, 1 year ago
Unable to start activity ComponentInfo{chat.realtimechat/chat.realtimechat.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference
via Stack Overflow by Yuriy Yunikov
, 2 years ago
Unable to start activity ComponentInfo{ua.yyunikov.fc/ua.yyunikov.fc.ui.activities.RatesActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference
via Stack Overflow by gunZ333
, 1 year ago
Unable to start activity ComponentInfo{com.fingervoiz.app.tamla/com.fingervoiz.app.tamla.Activity.ListDataIdntActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference
via pr8x.com by Unknown author, 1 year ago
Unable to start activity ComponentInfo{ua.yyunikov.fc/ua.yyunikov.fc.ui.activities.RatesActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference
via ezeenow.com by Unknown author, 1 year ago
Unable to start activity ComponentInfo{actionandroid.aa.com.actionandroid/actionandroid.aa.com.actionandroid.AboutActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference
via Stack Overflow by Unknown author, 2 years ago
Unable to start activity ComponentInfo{com.example.app/com.example.app.ActivityMain}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{chat.realtimechat/chat.realtimechat.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference
at chat.realtimechat.MainActivity.onCreate(MainActivity.java:50)
at android.app.Activity.performCreate(Activity.java:5937)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.