java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.farazpcir.masoud/com.example.farazpcir.masoud.SecendActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.RecyclerView.setHasFixedSize(boolean)' 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 Stack Overflow by m.erfani
, 1 year ago
Unable to start activity ComponentInfo{com.example.farazpcir.masoud/com.example.farazpcir.masoud.SecendActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.RecyclerView.setHasFixedSize(boolean)' on a null object reference
via Stack Overflow by fizzyisdizzy
, 1 year ago
Unable to start activity ComponentInfo{app.com.example.android.prototype/app.com.example.android.prototype.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.RecyclerView.setHasFixedSize(boolean)' on a null object reference
via Stack Overflow by Tejaram Sutar
, 6 months ago
Unable to start activity ComponentInfo{com.sutar.tejas.aitm/com.sutar.tejas.aitm.TimetabletListActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.RecyclerView.setHasFixedSize(boolean)' on a null object reference
via Stack Overflow by Kiran Malvi
, 1 year ago
Unable to start activity ComponentInfo{in.mumbaitravellers.mtleaders/in.mumbaitravellers.mtleaders.activity.DetailActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.RecyclerView.setHasFixedSize(boolean)' on a null object reference
via Stack Overflow by Mohamed
, 2 months ago
Unable to start activity ComponentInfo{com.example.gon.recycleview/com.example.gon.recycleview.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.RecyclerView.setHasFixedSize(boolean)' on a null object reference
via GitHub by Starmel
, 3 days ago
Unable to start activity ComponentInfo{ru.myrequest.c1/ru.tinkoff.acquiring.sdk.PayFormActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.app.ActionBar.setDisplayHomeAsUpEnabled(boolean)' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.farazpcir.masoud/com.example.farazpcir.masoud.SecendActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.RecyclerView.setHasFixedSize(boolean)' 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, 10 months ago
16 times, 10 months ago

Write tip

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