Skip to content
Snippets Groups Projects
Commit 8e316820 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Prevent NPE

parent 465d65dc
No related branches found
No related tags found
No related merge requests found
......@@ -218,8 +218,9 @@ public class BaseBrowserAdapter extends BaseQueuedAdapter<ArrayList<MediaLibrary
update(new ArrayList<MediaLibraryItem>(0));
}
public boolean isEmpty(){
return peekLast().isEmpty();
public boolean isEmpty() {
ArrayList<MediaLibraryItem> newerList = peekLast();
return newerList == null || newerList.isEmpty();
}
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment