[ISSUE #5198] Fix NPE in ClusterList SubCommand (#5199)

This commit is contained in:
lizhimins
2022-09-28 11:07:22 +08:00
committed by GitHub
parent b8607d917c
commit 2c6ea9eeaf
@@ -251,14 +251,15 @@ public class ClusterListSubCommand implements SubCommand {
}
version = kvTable.getTable().get("brokerVersionDesc");
{
if (StringUtils.isNotBlank(putTps)) {
String[] tpss = putTps.split(" ");
if (tpss.length > 0) {
in = Double.parseDouble(tpss[0]);
}
}
{
if (StringUtils.isNotBlank(getTransferredTps)) {
String[] tpss = getTransferredTps.split(" ");
if (tpss.length > 0) {
out = Double.parseDouble(tpss[0]);