mirror of
https://github.com/didi/KnowStreaming.git
synced 2025-12-25 21:02:16 +08:00
openTopicJmx方法的参数jmxSwitch需要判空
This commit is contained in:
@@ -28,7 +28,7 @@ public class ZookeeperServiceImpl implements ZookeeperService {
|
||||
|
||||
@Override
|
||||
public Result openTopicJmx(Long clusterId, String topicName, TopicJmxSwitch jmxSwitch) {
|
||||
if (ValidateUtils.isNull(clusterId) || ValidateUtils.isNull(topicName)) {
|
||||
if (ValidateUtils.isNull(clusterId) || ValidateUtils.isNull(topicName) || ValidateUtils.isNull(jmxSwitch)) {
|
||||
return Result.buildFrom(ResultStatus.PARAM_ILLEGAL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user