Merge pull request #9844 from OliverKohlDSc/patch-1

CRON call ends in null exception
This commit is contained in:
Thomas Müller 2014-08-26 14:42:07 +02:00
commit 910b827b98
1 changed files with 4 additions and 2 deletions

View File

@ -122,8 +122,10 @@ try {
// Work and success :-)
$jobList = \OC::$server->getJobList();
$job = $jobList->getNext();
$job->execute($jobList, $logger);
$jobList->setLastJob($job);
if ($job != null) {
$job->execute($jobList, $logger);
$jobList->setLastJob($job);
}
OC_JSON::success();
}
}