HBASE-25332:fix One pontential NPE
Closes #2715 Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
parent
4c8fa47b28
commit
a1db679e4d
|
@ -503,7 +503,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