Merge "Fix for possible NPE in JobScheduler"

This commit is contained in:
Shreyas Basarge
2016-01-19 11:46:37 +00:00
committed by Android (Google) Code Review

View File

@@ -913,6 +913,11 @@ public class JobSchedulerService extends com.android.server.SystemService
minPriorityContextId = i;
break;
}
if (job == null) {
// No job on this context, but nextPending can't run here because
// the context has a preferred Uid.
continue;
}
if (job.getUid() != nextPending.getUid()) {
continue;
}