OpenJDK / jdk8u / jdk8u / jdk
changeset 9172:0157177fb61a
8031025: SQE test CertPath/CertPathBuilderTest/* failed with java.lang.IndexOutOfBoundsException
Reviewed-by: mullan
author | juh |
---|---|
date | Wed, 19 Feb 2014 20:07:10 -0800 |
parents | a87de041ad17 |
children | 0906a9d88fa0 7541ab4b0127 3e878381822b |
files | src/share/classes/sun/security/provider/certpath/RevocationChecker.java |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/classes/sun/security/provider/certpath/RevocationChecker.java Wed Feb 19 18:25:45 2014 -0800 +++ b/src/share/classes/sun/security/provider/certpath/RevocationChecker.java Wed Feb 19 20:07:10 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -1035,6 +1035,9 @@ boolean signFlag = true; List<? extends Certificate> cpList = cpbr.getCertPath().getCertificates(); + if (cpList.isEmpty()) { + return; + } try { for (int i = cpList.size()-1; i >= 0; i-- ) { X509Certificate cert = (X509Certificate)cpList.get(i);