You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by xi...@apache.org on 2023/07/12 03:28:28 UTC

[shenyu] branch master updated: [ISSUE #4833] fix Problems with serialization and deserialization using GsonUtils (#4834)

This is an automated email from the ASF dual-hosted git repository.

xiaoyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu.git


The following commit(s) were added to refs/heads/master by this push:
     new be25018c4 [ISSUE #4833] fix Problems with serialization and deserialization using GsonUtils (#4834)
be25018c4 is described below

commit be25018c43a61eac751625e9a2cac39d6a9ca068
Author: xuziyang <76...@qq.com>
AuthorDate: Wed Jul 12 11:28:22 2023 +0800

    [ISSUE #4833] fix Problems with serialization and deserialization using GsonUtils (#4834)
    
    Co-authored-by: menglujing <97...@qq.com>
    Co-authored-by: xiaoyu <xi...@apache.org>
---
 .../src/main/java/org/apache/shenyu/common/utils/GsonUtils.java         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shenyu-common/src/main/java/org/apache/shenyu/common/utils/GsonUtils.java b/shenyu-common/src/main/java/org/apache/shenyu/common/utils/GsonUtils.java
index c3e140dd9..9655084da 100644
--- a/shenyu-common/src/main/java/org/apache/shenyu/common/utils/GsonUtils.java
+++ b/shenyu-common/src/main/java/org/apache/shenyu/common/utils/GsonUtils.java
@@ -409,7 +409,7 @@ public class GsonUtils {
         @Override
         public void write(final JsonWriter out, final String value) {
             try {
-                if (StringUtils.isBlank(value)) {
+                if (Objects.isNull(value)) {
                     out.nullValue();
                     return;
                 }