java.lang.RuntimeException: Unable to start activity ComponentInfo{info.androidhive.camerafileupload/info.androidhive.camerafileupload.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.ActionBar.setBackgroundDrawable(android.graphics.drawable.Drawable)' 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 VjyAnnd
, 1 year ago
Unable to start activity ComponentInfo{info.androidhive.camerafileupload/info.androidhive.camerafileupload.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.ActionBar.setBackgroundDrawable(android.graphics.drawable.Drawable)' on a null object reference
via Stack Overflow by code conflict
, 1 year ago
Unable to start activity ComponentInfo{com.wiki.day/com.wiki.day.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.ActionBar.setBackgroundDrawable(android.graphics.drawable.Drawable)' on a null object reference
via Stack Overflow by Used
, 3 months ago
Unable to start activity ComponentInfo{com.carte.alex.test3/com.carte.alex.test3.Main2Activity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.CheckedTextView.setCompoundDrawables
via google.com by Unknown author, 1 year ago
Unable to start activity ComponentInfo{***.*****.****/***.*****.****.ProductDetailActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.graphics.drawable.Drawable android.support.v7.widget.Toolbar.getBackground()' on a null object reference
via Stack Overflow by Jdbaba
, 2 years ago
Unable to start activity ComponentInfo{jdexamples.app13_exploringtabs/jdexamples.app13_exploringtabs.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TabHost.setup()' on a null object reference
via Stack Overflow by Kapparino
, 1 year ago
Unable to start activity ComponentInfo{MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.SupportMapFragment.getMapAsync(com.google.android.gms.maps.OnMapReadyCallback)' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{info.androidhive.camerafileupload/info.androidhive.camerafileupload.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.ActionBar.setBackgroundDrawable(android.graphics.drawable.Drawable)' 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
6 times, 4 months ago
184 times, 9 months ago
16 times, 10 months ago
109 more bugmates

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