Merge "Work on issue #62095840: NPE in JobParamteres in the background" into oc-dev

This commit is contained in:
Dianne Hackborn
2017-05-30 20:21:11 +00:00
committed by Android (Google) Code Review

View File

@@ -210,6 +210,9 @@ public abstract class JobServiceEngine {
* information.
*/
public void jobFinished(JobParameters params, boolean needsReschedule) {
if (params == null) {
throw new NullPointerException("params");
}
Message m = Message.obtain(mHandler, MSG_JOB_FINISHED, params);
m.arg2 = needsReschedule ? 1 : 0;
m.sendToTarget();