java.lang.RuntimeException: Unable to start activity ComponentInfo{com.raghavsingh.stormy/com.raghavsingh.stormy.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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via teamtreehouse.com by Unknown author, 1 year ago
Unable to start activity ComponentInfo{com.raghavsingh.stormy/com.raghavsingh.stormy.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 Shibin Kalliatt
, 2 months ago
Unable to start activity ComponentInfo{net.donateclub.codend.donateclub/net.donateclub.codend.donateclub.ResetPasswordOTP}: 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 Georq
, 9 months ago
Unable to start activity ComponentInfo{silverbeach.meintieralter/silverbeach.meintieralter.MainActivity}: 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 Tarik Hodzic
, 1 year ago
Unable to start activity ComponentInfo{com.example.android.musicplayer/com.example.android.musicplayer.ArtistLibrary}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
via Stack Overflow by Amit Kishor
, 10 months ago
Unable to start activity ComponentInfo{com.example.atry.atry/com.example.atry.atry.MainActivity}: 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 Maruf Heavyman
, 10 months ago
Unable to start activity ComponentInfo{com.deneme.deneme/com.deneme.deneme.MainActivity}: 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.raghavsingh.stormy/com.raghavsingh.stormy.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
at com.raghavsingh.stormy.MainActivity.onCreate(MainActivity.java:59)
at android.app.Activity.performCreate(Activity.java:6876)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)

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.

Write tip

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