diff --git a/jeecg-boot/jeecg-boot-base/jeecg-boot-base-tools/src/main/java/org/jeecg/common/enums/SentinelErrorInfoEnum.java b/jeecg-boot/jeecg-boot-base/jeecg-boot-base-tools/src/main/java/org/jeecg/common/enums/SentinelErrorInfoEnum.java
index 07d1df6..91b86f2 100644
--- a/jeecg-boot/jeecg-boot-base/jeecg-boot-base-tools/src/main/java/org/jeecg/common/enums/SentinelErrorInfoEnum.java
+++ b/jeecg-boot/jeecg-boot-base/jeecg-boot-base-tools/src/main/java/org/jeecg/common/enums/SentinelErrorInfoEnum.java
@@ -93,6 +93,10 @@ public enum SentinelErrorInfoEnum {
      * @return String 错误信息
      */
     public static SentinelErrorInfoEnum getErrorByException(Throwable throwable) {
+        if(throwable==null){
+            return null;
+        }
+
         String exceptionClass=throwable.getClass().getSimpleName();
         for (SentinelErrorInfoEnum e : SentinelErrorInfoEnum.values()) {
             if (exceptionClass.equals(e.name())) {