We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is an nil pointer panic in my prod env.
runtime error: invalid memory address or nil pointer dereference
github.com/bytedance/sonic/internal/decoder/errors.(*MismatchTypeError).Error(0x2ff8980?) :1 +0x25
The code just like:
var sonicConfig = sonic.Config{ EscapeHTML: true, }.Froze() err:=sonicConfig.Unmarshal(data, v) if err!=nil{ print(err.Error()) }
It panic when i call err.Error()
err.Error()
The text was updated successfully, but these errors were encountered:
Thanks, could you provide minimal reproducible codes, we will investigate it
Sorry, something went wrong.
Hi @liuq19, I find you have push an fix commit. But it only for main branch. Can we use main branch in our prod environment? It is safe?
we will publish the version later
@liuq19 Thank you very much
pls update into v1.12.2
Successfully merging a pull request may close this issue.
There is an nil pointer panic in my prod env.
runtime error: invalid memory address or nil pointer dereference
The code just like:
It panic when i call
err.Error()
The text was updated successfully, but these errors were encountered: