mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2024-11-23 11:31:33 +01:00
Fix possible NPE in game filtering code
This commit is contained in:
parent
b354b32bb7
commit
aa6ba09675
|
@ -112,7 +112,7 @@ public class GameAdapter<T> extends BaseAdapter implements Filterable {
|
|||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
protected void publishResults(CharSequence constraint, FilterResults results) {
|
||||
values = (ArrayList<T>) results.values;
|
||||
values = results == null ? new ArrayList<T>() : (ArrayList<T>) results.values;
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user