From 38126a8df676d93da5f590dbea8701d027fdf79b Mon Sep 17 00:00:00 2001 From: Denis Date: Mon, 10 Nov 2014 11:19:13 +0200 Subject: [PATCH] Hotfix to NPE in UpdatesIndexFragment --- OsmAnd/src/net/osmand/plus/download/UpdatesIndexFragment.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/download/UpdatesIndexFragment.java b/OsmAnd/src/net/osmand/plus/download/UpdatesIndexFragment.java index 336367be19..fd193284d1 100644 --- a/OsmAnd/src/net/osmand/plus/download/UpdatesIndexFragment.java +++ b/OsmAnd/src/net/osmand/plus/download/UpdatesIndexFragment.java @@ -42,8 +42,7 @@ public class UpdatesIndexFragment extends SherlockListFragment { updateColor = getResources().getColor(R.color.color_update); osmandRegions = getMyApplication().getResourceManager().getOsmandRegions(); List indexItems = new ArrayList(); - 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);