Skip to content

fix: null pointer generated when import cert file#78

Merged
Leizhenpeng merged 2 commits into
ConnectAI-E:masterfrom
aaakoako:https
Mar 10, 2023
Merged

fix: null pointer generated when import cert file#78
Leizhenpeng merged 2 commits into
ConnectAI-E:masterfrom
aaakoako:https

Conversation

@aaakoako

Copy link
Copy Markdown
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