Fixed crash returning from settings, caused in previous commit

This commit is contained in:
Ciaran Gultnieks 2012-09-15 13:20:06 +01:00
parent d239d2dabe
commit 42d2070701

View File

@ -260,7 +260,7 @@ public class FDroid extends TabActivity implements OnItemClickListener,
// unschedule) the service accordingly. It's cheap, so no need to
// check if the particular setting has actually been changed.
UpdateService.schedule(getBaseContext());
if (data.hasExtra("reset")) {
if (data != null && data.hasExtra("reset")) {
updateRepos();
} else {
populateLists();