зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1106584, Part 1: guard against null intent. r=vng
This commit is contained in:
Родитель
07ec92ff2b
Коммит
fa5d35976f
|
@ -48,7 +48,8 @@ public class UploadAlarmReceiver extends BroadcastReceiver {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onHandleIntent(Intent intent) {
|
protected void onHandleIntent(Intent intent) {
|
||||||
boolean isRepeating = intent.getBooleanExtra(EXTRA_IS_REPEATING, true);
|
// Default to a repeating alarm, which is what Fennec Stumbler uses
|
||||||
|
boolean isRepeating = (intent == null)? true : intent.getBooleanExtra(EXTRA_IS_REPEATING, true);
|
||||||
if (DataStorageManager.getInstance() == null) {
|
if (DataStorageManager.getInstance() == null) {
|
||||||
DataStorageManager.createGlobalInstance(this, null);
|
DataStorageManager.createGlobalInstance(this, null);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче