mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-05-29 14:19:53 +00:00
perf[net]: 修复空指针异常
This commit is contained in:
@@ -374,6 +374,10 @@ public class ZookeeperRegistry implements IRegistry {
|
||||
|
||||
@Override
|
||||
public void checkConsumer() {
|
||||
if (curator == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (curator.getState() == CuratorFrameworkState.STOPPED) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user