branch | JDK-8145252-TLS13-branch |
changeset 56592 | b1902b22005e |
parent 56542 | 56aaa6cb3693 |
parent 50204 | 3195a713e24d |
--- a/test/jdk/java/security/SignedObject/Chain.java Tue May 22 20:36:31 2018 +0800 +++ b/test/jdk/java/security/SignedObject/Chain.java Tue May 22 16:36:02 2018 -0700 @@ -203,8 +203,9 @@ signature = Signature.getInstance(test.sigAlg.name); kpg = KeyPairGenerator.getInstance(test.keyAlg.name); } - - signature.setParameter(test.sigParams); + if (test.sigParams != null) { + signature.setParameter(test.sigParams); + } for (int j=0; j < N; j++) { if (test.keySize != -1) {