hadoop-mapreduce-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MAPREDUCE-5747) Potential null pointer deference in HsTasksBlock#render()
Date Sat, 08 Feb 2014 02:35:19 GMT
Ted Yu created MAPREDUCE-5747:
---------------------------------

             Summary: Potential null pointer deference in HsTasksBlock#render()
                 Key: MAPREDUCE-5747
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5747
             Project: Hadoop Map/Reduce
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


At line 140:
{code}
        } else {
          ta = new TaskAttemptInfo(successful, type, false);
{code}
There is no check for type against null.
TaskAttemptInfo ctor deferences type:
{code}
  public TaskAttemptInfo(TaskAttempt ta, TaskType type, Boolean isRunning) {
    final TaskAttemptReport report = ta.getReport();
    this.type = type.toString();
{code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message