You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Jorge Gabriel Siqueira (JIRA)" <ji...@apache.org> on 2015/09/28 17:47:04 UTC

[jira] [Updated] (MAPREDUCE-5747) Potential null pointer deference in HsTasksBlock#render()

     [ https://issues.apache.org/jira/browse/MAPREDUCE-5747?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jorge Gabriel Siqueira updated MAPREDUCE-5747:
----------------------------------------------
    Attachment: MAPREDUCE-5747-2.patch

Fixing checkstyle issues in the patch. I could not develop the tests for the issue.

> 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
>              Labels: BB2015-05-TBR, newbie, patch
>         Attachments: MAPREDUCE-5747-1.patch, MAPREDUCE-5747-2.patch
>
>
> 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.3.4#6332)