sensitive icon indicating copy to clipboard operation
sensitive copied to clipboard

com.github.houbb.sensitive.core.api.SensitiveService 102行中的 fieldNewObject 会出现 NullPointerException

Open shuangluxing opened this issue 2 years ago • 1 comments

在层级比较多的情况,使用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,导致错误,需要进行判空操作

shuangluxing avatar Nov 06 '23 01:11 shuangluxing

有时间麻烦给一个具体的例子,或者提一个 PR。我这边测试验证后修复。

houbb avatar Jan 27 '24 03:01 houbb