From 22443f9bbd0bbb5e5feaf8482734cf201b99d0a8 Mon Sep 17 00:00:00 2001 From: WonyuChoi Date: Wed, 4 Sep 2024 11:30:37 +0900 Subject: [PATCH] =?UTF-8?q?hotfix:=20=ED=8C=8C=EB=9D=BC=EB=AF=B8=ED=84=B0?= =?UTF-8?q?=20=EA=B0=92=EC=9D=B4=20null=EC=9D=BC=20=EB=95=8C=20=EC=B2=98?= =?UTF-8?q?=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/first/flash/global/aspect/LoggingAspect.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/first/flash/global/aspect/LoggingAspect.java b/src/main/java/com/first/flash/global/aspect/LoggingAspect.java index 68ae22e5..8021b83e 100644 --- a/src/main/java/com/first/flash/global/aspect/LoggingAspect.java +++ b/src/main/java/com/first/flash/global/aspect/LoggingAspect.java @@ -81,11 +81,14 @@ public void doBefore(final JoinPoint joinPoint) { log.info("======= {} Start =======", objectName); log.info("method name = {}", method.getName()); Object[] args = joinPoint.getArgs(); - if(Objects.isNull(args) || args.length == 0) { + if (Objects.isNull(args) || args.length == 0) { log.info("no parameter"); return; } for (Object arg : args) { + if (Objects.isNull(arg)) { + continue; + } log.info("parameter type = {}", arg.getClass().getSimpleName()); log.info("parameter value = {}", arg); }