java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.jithin.list_image_change/com.example.jithin.list_image_change.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setOnClickListener(android.view.View$OnClickListener)' 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 Jithin
, 1 year ago
Unable to start activity ComponentInfo{com.example.jithin.list_image_change/com.example.jithin.list_image_change.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
via Stack Overflow by Android Developer Trainee
, 1 year ago
Unable to start activity ComponentInfo{com.example.jithin.myapplication/com.example.jithin.myapplication.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
via Stack Overflow by upward
, 1 year ago
Unable to start activity ComponentInfo{com.example.navigate.viewpager1/com.example.navigate.viewpager1.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
via Stack Overflow by J2FX
, 1 month ago
Unable to start activity ComponentInfo{com.j2fx.msc_driverlogin/com.j2fx.msc_driverlogin.RegisterNew}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
via Stack Overflow by Prashant Pandey
, 1 year ago
Unable to start activity ComponentInfo{com.example.prashant.wisdom/com.example.prashant.wisdom.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.design.widget.FloatingActionButton.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
via Stack Overflow by R.Hull
, 1 year ago
Unable to start activity ComponentInfo{com.example.ryan.ryans_quiz/com.example.ryan.ryans_quiz.QuizActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.jithin.list_image_change/com.example.jithin.list_image_change.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 10 months ago
9 times, 11 months ago
7 times, 8 months ago
6 times, 4 months ago
184 times, 10 months ago
109 more bugmates

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