This is an automated email from the ASF dual-hosted git repository.
dockerzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git
The following commit(s) were added to refs/heads/master by this push:
new 4afac0c768 [INLONG-8434][Manager] Fix error converting null to string
when converting JSON string (#8435)
4afac0c768 is described below
commit 4afac0c7689fdce853769ae44b9f1945abe78e8c
Author: fuweng11 <[email protected]>
AuthorDate: Wed Jul 5 20:06:11 2023 +0800
[INLONG-8434][Manager] Fix error converting null to string when converting
JSON string (#8435)
---
.../inlong/manager/service/repository/DataProxyConfigRepository.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/repository/DataProxyConfigRepository.java
b/inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/repository/DataProxyConfigRepository.java
index b5dc9fabf0..de793b63bd 100644
---
a/inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/repository/DataProxyConfigRepository.java
+++
b/inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/repository/DataProxyConfigRepository.java
@@ -320,7 +320,7 @@ public class DataProxyConfigRepository implements
IRepository {
JsonElement child = obj.get(key);
if (child.isJsonPrimitive()) {
mapObj.put(key, child.getAsString());
- } else {
+ } else if (!child.isJsonNull()) {
mapObj.put(key, child.toString());
}
}