Skip to content

fix: null pointer generated when import cert file #78

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

Merged
merged 2 commits into from
Mar 10, 2023

Conversation

aaakoako
Copy link
Contributor

描述

解决cert.leaf :*crypto/x509.certificate nil时产生的空指针报错:
检查了证书列表是否为空,如果为空则返回错误。然后将证书列表中的第一个证书解析成x509.Certificate,并将其设置为cert.Leaf,这样避免了空指针错误。

@Leizhenpeng Leizhenpeng changed the title 解决cert.leaf :*crypto/x509.certificate nil时产生的空指针报错 fix: null pointer generated when import cert file Mar 10, 2023
@Leizhenpeng Leizhenpeng merged commit 1e6cc73 into ConnectAI-E:master Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants