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

如果JsonInjector.get函数的输入值为null零, 则更改错误消息。 #1613

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pingpingy1
Copy link

@pingpingy1 pingpingy1 commented Mar 7, 2024

如果JsonInjector.get函数中refer的值为null,则会导致 NPE 发生在变量更改之后。
这使得查看错误消息并确认错误是否由refer的值引起变得困难。
本次 PR 修改为在变量更改之前直接触发错误,以便返回更有利于进一步调试的信息。

@CLAassistant
Copy link

CLAassistant commented Mar 7, 2024

CLA assistant check
All committers have signed the CLA.

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

Successfully merging this pull request may close these issues.

None yet

2 participants