Fix NPE
This commit is contained in:
parent
d21179a66d
commit
3b3e27cdc9
1 changed files with 2 additions and 2 deletions
|
@ -173,9 +173,9 @@ public class DownloadIndexAdapter extends OsmandBaseExpandableListAdapter implem
|
||||||
if (items != null && !items.isEmpty()) {
|
if (items != null && !items.isEmpty()) {
|
||||||
list.addAll(IndexItemCategory.categorizeIndexItems(app, items));
|
list.addAll(IndexItemCategory.categorizeIndexItems(app, items));
|
||||||
} else if(DownloadIndexAdapter.this.indexFiles.isEmpty()){
|
} else if(DownloadIndexAdapter.this.indexFiles.isEmpty()){
|
||||||
list.add(new IndexItemCategory(downloadFragment.getResources().getString(R.string.no_index_file_to_download), 1));
|
list.add(new IndexItemCategory(app.getString(R.string.no_index_file_to_download), 1));
|
||||||
} else {
|
} else {
|
||||||
list.add(new IndexItemCategory(downloadFragment.getResources().getString(R.string.select_index_file_to_download), 1));
|
list.add(new IndexItemCategory(app.getString(R.string.select_index_file_to_download), 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
notifyDataSetChanged();
|
notifyDataSetChanged();
|
||||||
|
|
Loading…
Reference in a new issue