hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhijie Shen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-2121) TimelineAuthenticator#hasDelegationToken may throw NPE
Date Mon, 02 Jun 2014 19:13:03 GMT
Zhijie Shen created YARN-2121:
---------------------------------

             Summary: 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


{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)

Mime
View raw message