hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1614270 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/conn/ssl/AbstractCommonHostnameVerifier.java
Date Tue, 29 Jul 2014 07:13:54 GMT
Author: olegk
Date: Tue Jul 29 07:13:54 2014
New Revision: 1614270

URL: http://svn.apache.org/r1614270
Log:
Catch and ignore NoSuchElementException when accessing CN attribute of a subject principal

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/conn/ssl/AbstractCommonHostnameVerifier.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/conn/ssl/AbstractCommonHostnameVerifier.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/conn/ssl/AbstractCommonHostnameVerifier.java?rev=1614270&r1=1614269&r2=1614270&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/conn/ssl/AbstractCommonHostnameVerifier.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/conn/ssl/AbstractCommonHostnameVerifier.java
Tue Jul 29 07:13:54 2014
@@ -38,6 +38,7 @@ import java.util.Iterator;
 import java.util.LinkedList;
 import java.util.List;
 import java.util.Locale;
+import java.util.NoSuchElementException;
 
 import javax.naming.InvalidNameException;
 import javax.naming.NamingException;
@@ -213,6 +214,7 @@ public abstract class AbstractCommonHost
                         if (value != null) {
                             cns.add(value.toString());
                         }
+                    } catch (NoSuchElementException ignore) {
                     } catch (NamingException ignore) {
                     }
                 }



Mime
View raw message