Skip to content

Commit

Permalink
hotfix: 파라미터 값이 null일 때 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
ChoiWonYu committed Sep 4, 2024
1 parent a7ff17b commit 22443f9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 22443f9

Please sign in to comment.