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

Vinod Kumar Vavilapalli commented on YARN-2121:
-----------------------------------------------

Tx for taking care of this.

The patch looks good. The test issue is tracked at YARN-2075.

+1, checking this in.

> TimelineAuthenticator#hasDelegationToken may throw NPE
> ------------------------------------------------------
>
>                 Key: YARN-2121
>                 URL: https://issues.apache.org/jira/browse/YARN-2121
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Zhijie Shen
>            Assignee: Zhijie Shen
>         Attachments: YARN-2121.1.patch
>
>
> {code}
>   private boolean hasDelegationToken(URL url) {
>     return url.getQuery().contains(
>         TimelineAuthenticationConsts.DELEGATION_PARAM + "=");
>   }
> {code}
> If the given url doesn't have any params at all. It will throw NPE.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to