Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3dbb412c authored by Shreyas Basarge's avatar Shreyas Basarge Committed by Android (Google) Code Review
Browse files

Merge "Fix for possible NPE in JobScheduler"

parents 365bd8f9 347c2780
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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;
                }