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();
      

        Activity

        Ted Yu created issue -
        Rahul Palamuttam made changes -
        Field Original Value New Value
        Status Open [ 1 ] Patch Available [ 10002 ]
        Labels newbie patch
        Tags Newbie
        Rahul Palamuttam made changes -
        Attachment MAPREDUCE-5747-1.patch [ 12676205 ]
        Allen Wittenauer made changes -
        Labels newbie patch BB2015-05-TBR newbie patch

          People

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

            Dates

            • Created:
              Updated:

              Development