From d08a22d6b150083a9cb6fec652d3c2f3bc912b53 Mon Sep 17 00:00:00 2001 From: yangzhengwu <947380458@qq.com> Date: Mon, 3 Jul 2023 16:27:50 +0800 Subject: [PATCH] =?UTF-8?q?bugFix:NullPointerException=E7=9A=84getMessage?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E6=98=AFnull,=E6=89=80=E4=BB=A5=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=BF=85=E8=A6=81=E6=89=93=E5=8D=B0=E5=87=BA=E6=9D=A5?= =?UTF-8?q?=EF=BC=8C=E7=9B=B4=E6=8E=A5=E6=89=93=E5=8D=B0=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E5=A0=86=E6=A0=88=E5=8D=B3=E5=8F=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/common/exception/GlobalExceptionHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mallchat-common/src/main/java/com/abin/mallchat/common/common/exception/GlobalExceptionHandler.java b/mallchat-common/src/main/java/com/abin/mallchat/common/common/exception/GlobalExceptionHandler.java index 3a986e1..a5a06eb 100644 --- a/mallchat-common/src/main/java/com/abin/mallchat/common/common/exception/GlobalExceptionHandler.java +++ b/mallchat-common/src/main/java/com/abin/mallchat/common/common/exception/GlobalExceptionHandler.java @@ -42,7 +42,7 @@ public class GlobalExceptionHandler { */ @ExceptionHandler(value = NullPointerException.class) public ApiResult exceptionHandler(NullPointerException e) { - log.error("null point exception!The reason is:{}", e.getMessage(), e); + log.error("null point exception!The reason is: ", e); return ApiResult.fail(CommonErrorEnum.SYSTEM_ERROR); }