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: 修复sm2构造方法NullPointerException #2820

Merged
merged 1 commit into from
Dec 27, 2022
Merged

fix: 修复sm2构造方法NullPointerException #2820

merged 1 commit into from
Dec 27, 2022

Conversation

CherryRum
Copy link
Contributor

Closes https://gitee.com/dromara/hutool/issues/I66OCK

修复

	public static ECPrivateKeyParameters toPrivateParams(String d, ECDomainParameters domainParameters) {
		return toPrivateParams(BigIntegers.fromUnsignedByteArray(SecureUtil.decode(d)), domainParameters);
	}


BigInteger bigInteger = BigIntegers.fromUnsignedByteArray(null);
引发NullPointerException

Verified

This commit was signed with the committer’s verified signature.
corymhall Cory Hall
@looly looly merged commit b596be1 into chinabugotech:v5-dev Dec 27, 2022
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