Skip to content

Commit ba656f5

Browse files
committed
fix parameter validation bug.
1 parent d3fbfde commit ba656f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/aliyun/oss/crypto/KmsEncryptionMaterials.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class KmsEncryptionMaterials implements EncryptionMaterials {
5656

5757
public KmsEncryptionMaterials(String region, String cmk) {
5858
assertParameterNotNull(region, "kms region");
59-
assertParameterNotNull(region, "kms cmk");
59+
assertParameterNotNull(cmk, "kms cmk");
6060
this.region = region;
6161
this.cmk = cmk;
6262
this.desc = new HashMap<String, String>();

0 commit comments

Comments
 (0)