PyErr_SetString(PyExc_RuntimeError, _("Job Level can be set only during JobInit"));
return -1;
}
- for (i=0; joblevels[i].level_name; i++) {
- if (strcmp(strval, joblevels[i].level_name) == 0) {
- if (joblevels[i].job_type == jcr->get_JobType()) {
- jcr->set_JobLevel(joblevels[i].level);
- jcr->jr.JobLevel = jcr->get_JobLevel();
- return 0;
+ if (strval != NULL) {
+ for (i=0; joblevels[i].level_name; i++) {
+ if (strcmp(strval, joblevels[i].level_name) == 0) {
+ if (joblevels[i].job_type == jcr->get_JobType()) {
+ jcr->set_JobLevel(joblevels[i].level);
+ jcr->jr.JobLevel = jcr->get_JobLevel();
+ return 0;
+ }
}
}
}
General:
+29Apr09
+kes Fix bug #1282 Setting job.Priority in python crashes director by
+ checking if string addr is NULL. Not tested.
+kes Fix bug #1281 allow all on restore command line to restore
+ pruned JobIds without prompting.
28Apr09
dirk Correct bat Select dialog. Fixes bug #1276.
kes Check for job_canceled() in fd_plugin code.