Guest User

Untitled

a guest
Jan 19th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. holder.cvContact.setOnClickListener(new View.OnClickListener() {
  2. @Override
  3. public void onClick(View view) {
  4. SingleContactFragment singleContactFragment = SingleContactFragment.newInstance(contact);
  5. FragmentTransaction transaction = ((Activity) context).getFragmentManager().beginTransaction();
  6. transaction.replace(R.id.rv_contact_list, singleContactFragment);
  7. transaction.commit();
  8. }
  9. });
  10.  
  11. 01-19 20:35:01.892 13088-13088/com.xzii.pkg E/AndroidRuntime: FATAL EXCEPTION: main
  12. Process: com.xzii.pkg, PID: 13088
  13. java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.support.v7.widget.RecyclerView$ViewHolder.shouldIgnore()' on a null object reference
  14. at android.support.v7.widget.RecyclerView.findMinMaxChildLayoutPositions(RecyclerView.java:3869)
  15. at android.support.v7.widget.RecyclerView.dispatchLayoutStep1(RecyclerView.java:3604)
  16. at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3408)
Add Comment
Please, Sign In to add comment