mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 15:15:51 +03:00
prevents NPE when selecting empty local folder
This commit is contained in:
parent
6bf6981a41
commit
d533b5f2d9
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ public class LocalFileListAdapter extends BaseAdapter implements ListAdapter {
|
|||
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
||||
view = inflator.inflate(R.layout.list_item, null);
|
||||
}
|
||||
if (mFiles != null && mFiles.length > position) {
|
||||
if (mFiles != null && mFiles.length > position && mFiles[position] != null) {
|
||||
File file = mFiles[position];
|
||||
|
||||
TextView fileName = (TextView) view.findViewById(R.id.Filename);
|
||||
|
|
Loading…
Reference in a new issue