java.lang.NullPointerException: Attempt to write to field 'int android.support.v7.widget.RecyclerVie


如下,你可能在onCreateViewHolder中返回了null
@Override
public BaseRecycleViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
    if (viewType == TYPE_TEXT) {
        View view = inflateView(R.layout.activity_chat_text, parent);
        return new ChatLeftTextMessageHolder(view);
    }else {
        return null;
    }

你可能感兴趣的:(android)