@@ -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) {