Fixed NPE in LocalIndexesFragment in onPostExecute
This commit is contained in:
parent
260d4eede2
commit
ef302a0059
1 changed files with 3 additions and 0 deletions
|
@ -701,6 +701,9 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onPostExecute(List<String> warnings) {
|
protected void onPostExecute(List<String> warnings) {
|
||||||
|
if ( getDownloadActivity() == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
getDownloadActivity().setProgressBarIndeterminateVisibility(false);
|
getDownloadActivity().setProgressBarIndeterminateVisibility(false);
|
||||||
if (!warnings.isEmpty()) {
|
if (!warnings.isEmpty()) {
|
||||||
final StringBuilder b = new StringBuilder();
|
final StringBuilder b = new StringBuilder();
|
||||||
|
|
Loading…
Reference in a new issue