java.lang.RuntimeException: Unable to start activity ComponentInfo{com.yuehu.cola.projectcola/com.yuehu.cola.projectcola.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' 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 GitHub by kncxstudio
, 1 year ago
Unable to start activity ComponentInfo{com.yuehu.cola.projectcola/com.yuehu.cola.projectcola.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
via Stack Overflow by MrSquirreleo
, 1 year ago
Unable to start activity ComponentInfo{com.pp.camry.schoolprojectorganizer/com.pp.camry.schoolprojectorganizer.MainScreen}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
via umeng.com by Unknown author, 1 year ago
Unable to start activity ComponentInfo{com.remennovel/com.umeng.comm.ui.activities.FindActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
via Stack Overflow by Ananthakumar
, 1 year ago
Unable to start activity ComponentInfo{ceg.dev.cegscms/ceg.dev.cegscms.LoginActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
via Stack Overflow by Amir
, 1 year ago
Unable to start activity ComponentInfo{com.examples.androface/com.examples.androface.Main}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
via 28im.com by Unknown author, 2 years ago
Unable to start activity ComponentInfo{com.example.kristofer.myapplication/com.example.kristofer.myapplication.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.yuehu.cola.projectcola/com.yuehu.cola.projectcola.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
at android.view.ViewConfiguration.get(ViewConfiguration.java:359)
at android.view.View.(View.java:3587)
at android.view.View.(View.java:3682)
at android.view.ViewGroup.(ViewGroup.java:497)
at android.view.ViewGroup.(ViewGroup.java:493)
at android.view.ViewGroup.(ViewGroup.java:489)
at android.view.ViewGroup.(ViewGroup.java:485)
at android.widget.FrameLayout.(FrameLayout.java:103)
at com.jude.easyrecyclerview.adapter.RecyclerArrayAdapter.setMore(RecyclerArrayAdapter.java:223)
at com.yuehu.cola.projectcola.ui.fragments.FragmentYuehu.initViews(FragmentYuehu.java:70)
at com.yuehu.cola.projectcola.ui.fragments.FragmentYuehu.onCreateView(FragmentYuehu.java:62)
at android.app.Fragment.performCreateView(Fragment.java:2053)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:894)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
at android.app.BackStackRecord.run(BackStackRecord.java:834)
at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1452)
at android.app.Activity.performStart(Activity.java:6005)

Users with the same issue

Samebug visitor profile picture
Unknown user
2 times, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
Once, 1 year ago
5 times, 1 year ago
6 more bugmates

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