[ 
https://issues.apache.org/jira/browse/MAPREDUCE-5748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14535724#comment-14535724
 ] 

Varun Saxena commented on MAPREDUCE-5748:
-----------------------------------------

Rebased patch of [~hubaghdadi] so that it can be taken for commit during Bug 
Bash

> Potential null pointer deference in ShuffleHandler#Shuffle#messageReceived()
> ----------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-5748
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5748
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 2.7.0
>            Reporter: Ted Yu
>            Assignee: Varun Saxena
>            Priority: Minor
>              Labels: BB2015-05-TBR
>         Attachments: 
> 0001-MAPREDUCE-5748-Potential-null-pointer-deference-in-S.patch, 
> MAPREDUCE-5748.02.patch
>
>
> Starting around line 510:
> {code}
>       ChannelFuture lastMap = null;
>       for (String mapId : mapIds) {
> ...
>       }
>       lastMap.addListener(metrics);
>       lastMap.addListener(ChannelFutureListener.CLOSE);
> {code}
> If mapIds is empty, lastMap would remain null, leading to NPE in 
> addListener() call.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to