提交 6f553daf 编写于 作者: R Rajan Dhabalia 提交者: Jia Zhai

Fix: NPE while cleaning up namespace node (#4965)

(cherry picked from commit 41bc407e)
上级 797b4b82
......@@ -153,7 +153,7 @@ public final class ServiceUnitZkUtils {
String brokerUrl = null;
try {
byte[] data = zkc.getData(path, false, null);
if (data.length == 0) {
if (data == null || data.length == 0) {
// skip, ephemeral node will not have zero byte
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册