setLayoutManager NullPointException in RecyclerView
In my case this error comes because I did not create RecyclerView
in one of my activity .
check your activity layout or fragment layout.
As @StenSoft noted in comments the problem was in
setContentView (R.layout.activity_main_appbar);
because of wrong activity layout content, instead of
setContentView (R.layout.activity_main);