[ https://issues.apache.org/jira/browse/ZOOKEEPER-1059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13034132#comment-13034132 ]
Mahadev konar commented on ZOOKEEPER-1059: ------------------------------------------ +1 the patch looks good. > 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 > Reporter: Bhallamudi Venkata Siva Kamesh > Assignee: Bhallamudi Venkata Siva Kamesh > Fix For: 3.4.0 > > Attachments: ZOOKEEPER-1059.patch > > > *stat* command issues on non existing zookeeper node,causes NPE to the client. > {noformat} > [zk: localhost:2181(CONNECTED) 2] stat /invalidPath > 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