java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

    • java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference at com.example.shashankdc.learn.Medals.Medals_Adapter.onBindViewHolder(Medals_Adapter.java:62) at com.example.shashankdc.learn.Medals.Medals_Adapter.onBindViewHolder(Medals_Adapter.java:17) at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:5138) at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4433) at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4326) at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1955) at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1364) at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1327) at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:556) at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2713) at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3011) at android.view.View.layout(View.java:15695) at android.view.ViewGroup.layout(ViewGroup.java:4981) at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1076) at android.view.View.layout(View.java:15695) at android.view.ViewGroup.layout(ViewGroup.java:4981) at android.support.design.widget.CoordinatorLayout.layoutChild(CoordinatorLayout.java:1009) at android.support.design.widget.CoordinatorLayout.onLayoutChild(CoordinatorLayout.java:719) at android.support.design.widget.ViewOffsetBehavior.onLayoutChild(ViewOffsetBehavior.java:42) at android.support.design.widget.AppBarLayout$ScrollingViewBehavior.onLayoutChild(AppBarLayout.java:984) at android.support.design.widget.CoordinatorLayout.onLayout(CoordinatorLayout.java:732) at android.view.View.layout(View.java:15695) at android.view.ViewGroup.layout(ViewGroup.java:4981) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:573) at android.widget.FrameLayout.onLayout(FrameLayout.java:508) at android.view.View.layout(View.java:15695) at android.view.ViewGroup.layout(ViewGroup.java:4981) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557) at android.widget.LinearLayout.onLayout(LinearLayout.java:1466) at android.view.View.layout(View.java:15695) at android.view.ViewGroup.layout(ViewGroup.java:4981) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:573) at android.widget.FrameLayout.onLayout(FrameLayout.java:508) at android.view.View.layout(View.java:15695) at android.view.ViewGroup.layout(ViewGroup.java:4981) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557) at android.widget.LinearLayout.onLayout(LinearLayout.java:1466) at android.view.View.layout(View.java:15695) at android.view.ViewGroup.layout(ViewGroup.java:4981) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:573) at android.widget.FrameLayout.onLayout(FrameLayout.java:508) at android.view.View.layout(View.java:15695) at android.view.ViewGroup.layout(ViewGroup.java:4981) at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2186) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1920) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1106) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6018) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:792) at android.view.Choreographer.doCallbacks(Choreographer.java:596) at android.view.Choreographer.doFrame(Choreographer.java:557) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:778) at android.os.Handler.handleCallback(Handler.java:739)
    No Bugmate found.