This is an automated email from the ASF dual-hosted git repository.
duanzhengqiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 8605b4e Fix NPE with schema yaml convert (#8124)
8605b4e is described below
commit 8605b4eab71f7a270b9d20087419a37baaf11f33
Author: Liang Zhang <[email protected]>
AuthorDate: Wed Nov 11 00:07:57 2020 +0800
Fix NPE with schema yaml convert (#8124)
---
.../governance/core/yaml/config/schema/YamlTableMetaData.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/shardingsphere-governance/shardingsphere-governance-core/shardingsphere-governance-core-common/src/main/java/org/apache/shardingsphere/governance/core/yaml/config/schema/YamlTableMetaData.java
b/shardingsphere-governance/shardingsphere-governance-core/shardingsphere-governance-core-common/src/main/java/org/apache/shardingsphere/governance/core/yaml/config/schema/YamlTableMetaData.java
index ee4bb60..e7e8005 100644
---
a/shardingsphere-governance/shardingsphere-governance-core/shardingsphere-governance-core-common/src/main/java/org/apache/shardingsphere/governance/core/yaml/config/schema/YamlTableMetaData.java
+++
b/shardingsphere-governance/shardingsphere-governance-core/shardingsphere-governance-core-common/src/main/java/org/apache/shardingsphere/governance/core/yaml/config/schema/YamlTableMetaData.java
@@ -22,6 +22,7 @@ import lombok.Setter;
import org.apache.shardingsphere.infra.yaml.config.YamlConfiguration;
import java.util.Collection;
+import java.util.LinkedHashSet;
import java.util.Map;
/**
@@ -35,5 +36,5 @@ public final class YamlTableMetaData implements
YamlConfiguration {
private Map<String, YamlIndexMetaData> indexes;
- private Collection<String> addressingDataSources;
+ private Collection<String> addressingDataSources = new LinkedHashSet<>();
}