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 <[email protected]>
AuthorDate: Wed Jul 12 11:28:22 2023 +0800

    [ISSUE #4833] fix Problems with serialization and deserialization using 
GsonUtils (#4834)
    
    Co-authored-by: menglujing <[email protected]>
    Co-authored-by: xiaoyu <[email protected]>
---
 .../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;
                 }

Reply via email to