shuhao 4 viikkoa sitten
vanhempi
commit
4d86fa1868

+ 1 - 1
src/main/java/com/xiesx/fastboot/core/body/GlobalBodyAdvice.java

@@ -35,7 +35,7 @@ public class GlobalBodyAdvice implements ResponseBodyAdvice<Object> {
         log.debug("beforeBodyWrite ......");
         Object res = null;
         // 按需使用,如果有改动,务必兼容之前代码
-        if(returnValue instanceof Serializable){
+        if(returnValue == null || returnValue instanceof Serializable){
             return returnValue;
         }
         if (returnValue instanceof BaseResult || returnValue instanceof PaginationResult) {