forward compatbility for DCS (#4442)

This commit is contained in:
吴晟 Wu Sheng 2020-03-04 17:28:53 +08:00 committed by GitHub
parent d32450aa7d
commit b6f7dce8c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ public class GRPCConfigWatcherRegister extends ConfigWatcherRegister {
}
ConfigurationResponse response = stub.call(builder.build());
String responseUuid = response.getUuid();
if (Objects.equals(uuid, responseUuid)) {
if (responseUuid != null && Objects.equals(uuid, responseUuid)) {
// If UUID matched, the config table is expected as empty.
return Optional.empty();
}