0

I have 3 Fragment in my app that contains RecyclerView.

and when I click on first option result is crash!

this is error of my project

amirj18
  • 3
  • 3
  • you should to add your code to your main question. I think you don't initialize the holder of the recycleview holder of your layout – visionix visionix Sep 18 '16 at 10:38
  • Possible duplicate of [What is a NullPointerException, and how do I fix it?](http://stackoverflow.com/questions/218384/what-is-a-nullpointerexception-and-how-do-i-fix-it) – Harshad Pansuriya Sep 18 '16 at 11:29

1 Answers1

0

Your log shows you have NPE at 72 row. In the row the only cause of NPE is your call G.context. Your context is null.

You can obtain valid context by call view.getContext() That's it.

Gleichmut
  • 5,953
  • 5
  • 24
  • 32