mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-20 18:15:56 +08:00
fix 处理脱敏json序列化工具空指针异常
如果没有是系统内部业务调用(缓存+脱敏功能)会空指针异常 导致缓存失败
This commit is contained in:
parent
7f73bfc478
commit
7764d9eafa
@ -36,7 +36,7 @@ public class SensitiveJsonSerializer extends JsonSerializer<String> implements C
|
||||
} else {
|
||||
gen.writeString(value);
|
||||
}
|
||||
} catch (BeansException e) {
|
||||
} catch (BeansException | NullPointerException e) {
|
||||
log.error("脱敏实现不存在, 采用默认处理 => {}", e.getMessage());
|
||||
gen.writeString(value);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user