Fix NPE in AnomalyDetectionReceiver.
Fixes: 172894032 Test: Settings robotests Change-Id: I13c1419a43dabc106bc3de9fb5d774ff88b19db5
This commit is contained in:
@@ -41,6 +41,9 @@ public class AnomalyDetectionReceiver extends BroadcastReceiver {
|
||||
+ configKey + " subscriptionId = " + subscriptionId);
|
||||
|
||||
final Bundle bundle = intent.getExtras();
|
||||
if (bundle == null) {
|
||||
return;
|
||||
}
|
||||
bundle.putLong(KEY_ANOMALY_TIMESTAMP, System.currentTimeMillis());
|
||||
|
||||
AnomalyDetectionJobService.scheduleAnomalyDetection(context, intent);
|
||||
|
||||
Reference in New Issue
Block a user