Bug 1106584, Part 1: guard against null intent. r=vng

This commit is contained in:
Garvan Keeley 2014-12-09 11:48:00 -08:00
Родитель 07ec92ff2b
Коммит fa5d35976f
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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);
} }