stat command isses on non-existing node causes NPE
---------------------------------------------------
Key: ZOOKEEPER-1059
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1059
Project: ZooKeeper
Issue Type: Bug
Components: java client
Affects Versions: 3.4.0
Reporter: Bhallamudi Venkata Siva Kamesh
*stat* command issues on non existing zookeeper node,causes NPE to the client.
{noformat}
[zk: localhost:2181(CONNECTED) 2] stat /amith
Exception in thread "main" java.lang.NullPointerException
at org.apache.zookeeper.ZooKeeperMain.printStat(ZooKeeperMain.java:131)
at
org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:723)
at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:582)
at
org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:354)
at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:312)
at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:271)
{noformat}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira