code: protected int neededTasks(JobInfo info, TaskType taskType) {
      if (info == null) return 0;
      return taskType == TaskType.MAP ? info.neededMaps : info.neededReduces;
    }
docs: returning 0's for jobs with no JobInfo present.