Null pointer exception in Array Adapter

<>

This question already has an answer here:

Answers


Use following:-

this.filteredData.addAll(list);
this.originalData.addAll(list);

change below lines -

private ArrayList<Skills> originalData = new ArrayList<Skills>();
private ArrayList<Skills> filteredData = new ArrayList<Skills>();

SkillsAutocompleteAdapter(Context mContext, int layoutResourceId, ArrayList<Skills> list) {
    super(mContext, layoutResourceId, list);

    this.layoutResourceId = layoutResourceId;
    this.mContext = mContext;
    this.filteredData = list;
    this.originalData = list;
}

To -

private ArrayList<Skills> originalData;
private ArrayList<Skills> filteredData;
int count = 0;

SkillsAutocompleteAdapter(Context mContext, int layoutResourceId, ArrayList<Skills> list) {
    super(mContext, layoutResourceId, list);

    this.layoutResourceId = layoutResourceId;
    this.mContext = mContext;
    filteredData = list;
    originalData = list;
    count = list.size()
}

@Override
public int getCount() {
    //return filteredData.size();
return count;
}

Need Your Help

Missing database table in CakePHP, I've followed the conventions and tried everything

php database cakephp model

My app works with other models, but for some reason the "Vote" model cannot connect to the db table when I try to save to it. I've been at this for a couple days and I feel like I've tried everyth...

Using SSL over Microsoft ARR

ssl iis-7 arr

Am trying to use SSL Offloading to to allow https on our webfarm. The only way we can get the SSL to work is to install the the certificate and and bind it in IIS on each server. However our farm is