Hotfix to NPE in UpdatesIndexFragment
This commit is contained in:
parent
d9ab5c4042
commit
38126a8df6
1 changed files with 1 additions and 2 deletions
|
@ -42,8 +42,7 @@ public class UpdatesIndexFragment extends SherlockListFragment {
|
|||
updateColor = getResources().getColor(R.color.color_update);
|
||||
osmandRegions = getMyApplication().getResourceManager().getOsmandRegions();
|
||||
List<IndexItem> indexItems = new ArrayList<IndexItem>();
|
||||
if (DownloadActivity.downloadListIndexThread != null &&
|
||||
DownloadActivity.downloadListIndexThread.getItemsToUpdate() != null) {
|
||||
if (DownloadActivity.downloadListIndexThread != null) {
|
||||
indexItems = DownloadActivity.downloadListIndexThread.getItemsToUpdate();
|
||||
}
|
||||
listAdapter = new UpdateIndexAdapter(getDownloadActivity(), R.layout.download_index_list_item, indexItems);
|
||||
|
|
Loading…
Reference in a new issue