fixed npe
This commit is contained in:
parent
28f68e2ff3
commit
4122992df5
|
@ -190,10 +190,10 @@ public abstract class ParcelableStatusesAdapter extends LoadMoreSupportAdapter<R
|
|||
|
||||
public void setData(List<ParcelableStatus> data) {
|
||||
mData = data;
|
||||
if (!(data instanceof ObjectCursor) && !data.isEmpty()) {
|
||||
mLastItemFiltered = data.get(data.size() - 1).is_filtered;
|
||||
} else {
|
||||
if (data instanceof ObjectCursor || data == null || data.isEmpty()) {
|
||||
mLastItemFiltered = false;
|
||||
} else {
|
||||
mLastItemFiltered = data.get(data.size() - 1).is_filtered;
|
||||
}
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue