Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shuangluxing opened this issue Nov 6, 2023 · 1 comment

Comments

@shuangluxing
Copy link

shuangluxing commented Nov 6, 2023

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

@houbb
Copy link
Owner

houbb commented Jan 27, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants