Fix a bug where StreamingClient will throw NPE if not initialized
commit9ea2e9551328dde5269de74980efd7b3c6479ba4
authorZhongjie Wu <www.zj30@gmail.com>
Mon, 24 Feb 2014 21:33:35 +0000 (24 13:33 -0800)
committerZhongjie Wu <www.zj30@gmail.com>
Tue, 25 Feb 2014 20:02:38 +0000 (25 12:02 -0800)
tree4a347ead03169eb3aff036a97a233d6275d2d223
parenta4c02983548ce517bf96dd1018b5463db7c5d852
Fix a bug where StreamingClient will throw NPE if not initialized

The StreamingClient.commitVoldemort() method would throw NPE if
it is called before "initStreamingSessions" is called. The fix
will make it skip proper operations so the commit() method will
not throw NPE
src/java/voldemort/client/protocol/admin/BaseStreamingClient.java
test/unit/voldemort/client/protocol/admin/StreamingClientTest.java