From ab87696d91c5a6e3a839f577cfb92e1070f14ca2 Mon Sep 17 00:00:00 2001 From: Suomm <1474983351@qq.com> Date: Sat, 29 Jul 2023 10:18:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=BC=E5=AE=B9=E4=B8=8D=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E5=9B=BD=E9=99=85=E5=8C=96=E7=9A=84=E6=83=85=E5=86=B5?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/mybatisflex/core/exception/MybatisFlexException.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mybatis-flex-core/src/main/java/com/mybatisflex/core/exception/MybatisFlexException.java b/mybatis-flex-core/src/main/java/com/mybatisflex/core/exception/MybatisFlexException.java index 20fd8938..29f2e09a 100644 --- a/mybatis-flex-core/src/main/java/com/mybatisflex/core/exception/MybatisFlexException.java +++ b/mybatis-flex-core/src/main/java/com/mybatisflex/core/exception/MybatisFlexException.java @@ -65,6 +65,9 @@ public class MybatisFlexException extends RuntimeException { } private String getMessage(Locale locale) { + if (pattern == null) { + return super.getMessage(); + } String localizedString = pattern.getLocalizedString(locale); return MessageFormat.format(localizedString, arguments); }