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

Fix Crash for myinfo API #25

Merged
merged 3 commits into from
Feb 8, 2024
Merged

Fix Crash for myinfo API #25

merged 3 commits into from
Feb 8, 2024

Conversation

yanyin1986
Copy link
Member

@yanyin1986 yanyin1986 commented Feb 8, 2024

fix: #24

Screenshot 2024-02-08 at 9 46 50

原因是这个 error 并不是parameter的 error, 而是 kotlin 的内置函数 error()

@kotlin.internal.InlineOnly
public inline fun error(message: Any): Nothing = throw IllegalStateException(message.toString())

造成这个问题的主要是随意的命名, 最好用 errorHandler, 这样不会造成歧义。

@yanyin1986 yanyin1986 merged commit e0a96c0 into master Feb 8, 2024
1 check passed
@yanyin1986 yanyin1986 deleted the issue/24_myinfo_crash branch February 8, 2024 00:57
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.

执行 myInfo 的时候,有概率会崩溃
2 participants