mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-12 22:15:02 +00:00
perf[net]: 修复空指针异常
This commit is contained in:
1 parent
2035fbb2ab
commit
4ca5a279ef
1 file changed
+4
@@ -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