diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/LogAspect.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/LogAspect.java index b638a791f..875fa4f1f 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/LogAspect.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/LogAspect.java @@ -89,7 +89,10 @@ public class LogAspect String ip = ShiroUtils.getIp(); operLog.setOperIp(ip); // θΏ”ε›žε‚ζ•° - operLog.setJsonResult(StringUtils.substring(JSON.marshal(jsonResult), 0, 2000)); + if (StringUtils.isNotNull(jsonResult)) + { + operLog.setJsonResult(StringUtils.substring(JSON.marshal(jsonResult), 0, 2000)); + } operLog.setOperUrl(ServletUtils.getRequest().getRequestURI()); if (currentUser != null)