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 Rafał
, 1 year ago
Attempt to invoke virtual method 'java.lang.String android.content.res.Resources.getString(int)' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.res.Resources.getString(int)' on a null object reference	at com.example.android.mbm.model.Movie.getInfo(Movie.java:103)	at com.example.android.mbm.fragments.MovieFragment$1.onItemClick(MovieFragment.java:44)	at com.example.android.mbm.fragments.MovieFragment$RecyclerItemClickListener.onInterceptTouchEvent(MovieFragment.java:117)	at android.support.v7.widget.RecyclerView.dispatchOnItemTouch(RecyclerView.java:2261)	at android.support.v7.widget.RecyclerView.onTouchEvent(RecyclerView.java:2389)	at android.view.View.dispatchTouchEvent(View.java:9390)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2549)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2240)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2555)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2555)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2555)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2555)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2555)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2555)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2555)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)	at com.android.internal.policy.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2461)	at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1777)	at android.app.Activity.dispatchTouchEvent(Activity.java:2865)	at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60)	at com.android.internal.policy.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2422)	at android.view.View.dispatchPointerEvent(View.java:9610)	at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4436)	at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4302)	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3836)	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3889)	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3855)	at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3981)	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3863)	at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4038)	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3836)	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3889)	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3855)	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3863)	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3836)	at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6135)	at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6109)	at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6070)	at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6251)	at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:192)	at android.os.MessageQueue.nativePollOnce(Native Method)	at android.os.MessageQueue.next(MessageQueue.java:330)	at android.os.Looper.loop(Looper.java:137)	at android.app.ActivityThread.main(ActivityThread.java:5546)	at java.lang.reflect.Method.invoke(Native Method)