You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2014/07/29 09:16:55 UTC

svn commit: r1614271 - /httpcomponents/httpclient/branches/4.3.x/httpclient/src/main/java/org/apache/http/conn/ssl/AbstractVerifier.java

Author: olegk
Date: Tue Jul 29 07:16:55 2014
New Revision: 1614271

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

Modified:
    httpcomponents/httpclient/branches/4.3.x/httpclient/src/main/java/org/apache/http/conn/ssl/AbstractVerifier.java

Modified: httpcomponents/httpclient/branches/4.3.x/httpclient/src/main/java/org/apache/http/conn/ssl/AbstractVerifier.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/branches/4.3.x/httpclient/src/main/java/org/apache/http/conn/ssl/AbstractVerifier.java?rev=1614271&r1=1614270&r2=1614271&view=diff
==============================================================================
--- httpcomponents/httpclient/branches/4.3.x/httpclient/src/main/java/org/apache/http/conn/ssl/AbstractVerifier.java (original)
+++ httpcomponents/httpclient/branches/4.3.x/httpclient/src/main/java/org/apache/http/conn/ssl/AbstractVerifier.java Tue Jul 29 07:16:55 2014
@@ -41,6 +41,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;
@@ -285,6 +286,7 @@ public abstract class AbstractVerifier i
                         if (value != null) {
                             cns.add(value.toString());
                         }
+                    } catch (NoSuchElementException ignore) {
                     } catch (NamingException ignore) {
                     }
                 }