HBASE-25332:fix One pontential NPE
Closes #2715 Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
parent
86bb037eb0
commit
8938b7a678
|
@ -467,7 +467,7 @@ final class RSGroupInfoManagerImpl implements RSGroupInfoManager {
|
|||
}
|
||||
for (String znode : children) {
|
||||
byte[] data = ZKUtil.getData(watcher, ZNodePaths.joinZNode(groupBasePath, znode));
|
||||
if (data.length > 0) {
|
||||
if (data != null && data.length > 0) {
|
||||
ProtobufUtil.expectPBMagicPrefix(data);
|
||||
ByteArrayInputStream bis =
|
||||
new ByteArrayInputStream(data, ProtobufUtil.lengthOfPBMagic(), data.length);
|
||||
|
|
Loading…
Reference in New Issue