Hadoop Map/Reduce
  1. Hadoop Map/Reduce
  2. MAPREDUCE-5747

Potential null pointer deference in HsTasksBlock#render()

    Details

    • Type: Bug Bug
    • Status: Patch Available
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Tags:
      Newbie

      Description

      At line 140:

              } else {
                ta = new TaskAttemptInfo(successful, type, false);
      

      There is no check for type against null.
      TaskAttemptInfo ctor deferences type:

        public TaskAttemptInfo(TaskAttempt ta, TaskType type, Boolean isRunning) {
          final TaskAttemptReport report = ta.getReport();
          this.type = type.toString();
      
      1. MAPREDUCE-5747-1.patch
        1 kB
        Rahul Palamuttam
      2. MAPREDUCE-5747-2.patch
        1.0 kB
        Jorge Gabriel Siqueira
      3. MAPREDUCE-5747-3.patch
        8 kB
        Guilherme
      4. MAPREDUCE-5747-4.patch
        8 kB
        Guilherme
      5. MAPREDUCE-5747-5.patch
        9 kB
        Jorge Gabriel Siqueira
      6. MAPREDUCE-5747-6.patch
        9 kB
        Jorge Gabriel Siqueira
      7. MAPREDUCE-5747-7.patch
        9 kB
        Guilherme
      8. MAPREDUCE-5747-8.patch
        9 kB
        Guilherme

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Ted Yu
          • Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

            • Created:
              Updated:

              Development