Prevent NPE
This commit is contained in:
parent
95bb95fc89
commit
1f00747e98
|
@ -370,6 +370,9 @@ public class ItemlistFragment extends ListFragment {
|
|||
|
||||
@Override
|
||||
public void onListItemClick(ListView l, View v, int position, long id) {
|
||||
if(adapter == null) {
|
||||
return;
|
||||
}
|
||||
FeedItem selection = adapter.getItem(position - l.getHeaderViewsCount());
|
||||
if (selection != null) {
|
||||
MainActivity activity = (MainActivity) getActivity();
|
||||
|
|
Loading…
Reference in New Issue