Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Highlighted
New Developer
Posts: 16
Registered: ‎01-05-2011
My Device: Bold 9700
My Carrier: Digicel

BasicFilteredList Usage

I am trying to get the results when a BasicFilteredList is filtered.

 

BasicFilteredList dataSet = new BasicFilteredList();

dataSet.addDataSet(1, days, "days", BasicFilteredList.COMPARISON_IGNORE_CASE); //Days is a String array

dataSet.setCriteria("T", this); 

 then the filterdone method for filterstatuslistener

 

public void filterDone(boolean interrupted) {
dataSet.getMatchedFields(results);//Results is a BasicFilteredListResult
}

 it is at this point i get a NullPointerException

 

 

I am not sure if this is the correct method to use to get the results i cant seem to find any implementation anywhere.

 

Any help would be awesome