[ https://issues.apache.org/jira/browse/HADOOP-10927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Josh Elser updated HADOOP-10927: -------------------------------- Attachment: HADOOP-10927.diff Fix the {{init()}} method to print the help message and return -1 instead of 0. Also fixed malformed and incorrect Javadocs on {{init()}}. Loosened {{init()}} visibility to protected over private so that I could test just that method. > Ran `hadoop credential` expecting usage, got NPE instead > -------------------------------------------------------- > > Key: HADOOP-10927 > URL: https://issues.apache.org/jira/browse/HADOOP-10927 > Project: Hadoop Common > Issue Type: Bug > Components: security > Reporter: Josh Elser > Priority: Minor > Attachments: HADOOP-10927.diff > > > {noformat} > $ hadoop credential > java.lang.NullPointerException > at > org.apache.hadoop.security.alias.CredentialShell.run(CredentialShell.java:67) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70) > at > org.apache.hadoop.security.alias.CredentialShell.main(CredentialShell.java:420) > {noformat} > Ran a no-arg version of {{hadoop credential}} expecting to get the usage/help > message (like other commands act), and got the above exception instead. -- This message was sent by Atlassian JIRA (v6.2#6252)