Fix NPE
This commit is contained in:
parent
eb6682dc5c
commit
9c0c5fc98d
1 changed files with 3 additions and 1 deletions
|
@ -391,7 +391,9 @@ public class DownloadIndexesThread {
|
|||
uiFragment.getDownloadActivity().getEntriesToDownload().put(basemap, downloadEntry);
|
||||
AccessibleToast.makeText(uiFragment.getDownloadActivity(), R.string.basemap_was_selected_to_download,
|
||||
Toast.LENGTH_LONG).show();
|
||||
uiFragment.findViewById(R.id.DownloadButton).setVisibility(View.VISIBLE);
|
||||
if(uiFragment.findViewById(R.id.DownloadButton) != null) {
|
||||
uiFragment.findViewById(R.id.DownloadButton).setVisibility(View.VISIBLE);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (indexFiles.isIncreasedMapVersion()) {
|
||||
|
|
Loading…
Reference in a new issue