Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- holder.cvContact.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View view) {
- SingleContactFragment singleContactFragment = SingleContactFragment.newInstance(contact);
- FragmentTransaction transaction = ((Activity) context).getFragmentManager().beginTransaction();
- transaction.replace(R.id.rv_contact_list, singleContactFragment);
- transaction.commit();
- }
- });
- 01-19 20:35:01.892 13088-13088/com.xzii.pkg E/AndroidRuntime: FATAL EXCEPTION: main
- Process: com.xzii.pkg, PID: 13088
- java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.support.v7.widget.RecyclerView$ViewHolder.shouldIgnore()' on a null object reference
- at android.support.v7.widget.RecyclerView.findMinMaxChildLayoutPositions(RecyclerView.java:3869)
- at android.support.v7.widget.RecyclerView.dispatchLayoutStep1(RecyclerView.java:3604)
- at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3408)
Add Comment
Please, Sign In to add comment