Merge "Work on issue #62095840: NPE in JobParamteres in the background" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1399d3abf5
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user