Closed leotu closed 8 years ago
conf.load(is) when conf is null value. Maybe missing code "conf = new Properties()" in if (conf == null) { ... } code block.
------------- Code ---- public ZookeeperClusterManager() { if (conf == null) { InputStream is = getConfigStream(); try { conf.load(is); } catch (IOException e) { log.error("Failed to load zookeeper config", e); } } }
conf.load(is) when conf is null value. Maybe missing code "conf = new Properties()" in if (conf == null) { ... } code block.
------------- Code ---- public ZookeeperClusterManager() { if (conf == null) { InputStream is = getConfigStream(); try { conf.load(is); } catch (IOException e) { log.error("Failed to load zookeeper config", e); } } }