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 One Step Back
, 1 year ago
Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
via Stack Overflow by stdio
, 10 months ago
Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
via Stack Overflow by Android007
, 2 years ago
Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
via Stack Overflow by user3715674
, 1 year ago
Attempt to invoke virtual method android.content.res.Resources android.content.Context.getResources()' on a null object reference
via Stack Overflow by Mina Dahesh
, 1 year ago
Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
via Stack Overflow by Lazar K
, 1 year ago
Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference	at android.content.ContextWrapper.getResources(ContextWrapper.java:87)	at com.emanager.ui.adapters.HomePagerAdapter.getPageTitle(HomePagerAdapter.java:45)	at android.support.design.widget.TabLayout.populateFromPagerAdapter(TabLayout.java:773)	at android.support.design.widget.TabLayout.setPagerAdapter(TabLayout.java:764)	at android.support.design.widget.TabLayout.setupWithViewPager(TabLayout.java:716)	at com.emanager.ui.activities.HomeActivity.onCreate(HomeActivity.java:65)	at android.app.Activity.performCreate(Activity.java:6237)	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)