sensitive
sensitive copied to clipboard
com.github.houbb.sensitive.core.api.SensitiveService 102行中的 fieldNewObject 会出现 NullPointerException
在层级比较多的情况,使用SensitiveUtil.desJson进行脱敏的时候,com.github.houbb.sensitive.core.api.SensitiveService 102行中的 fieldNewObject 如果为null会出现 NullPointerException,导致死循环,同时还包括 113 行中的 arrayEntry; 同时还包括 com.github.houbb.sensitive.core.util.entry.SensitiveEntryUtil 中 26行的 Annotation annotation = var2[var4]; 同样会出现 java.lang.NullPointerException: null,导致错误,需要进行判空操作
有时间麻烦给一个具体的例子,或者提一个 PR。我这边测试验证后修复。