cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1510750 - /cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/JAASAuthenticationFilter.java
Date Mon, 05 Aug 2013 21:37:58 GMT
Author: dkulp
Date: Mon Aug  5 21:37:58 2013
New Revision: 1510750

URL: http://svn.apache.org/r1510750
Log:
fix failing test

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/JAASAuthenticationFilter.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/JAASAuthenticationFilter.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/JAASAuthenticationFilter.java?rev=1510750&r1=1510749&r2=1510750&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/JAASAuthenticationFilter.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/JAASAuthenticationFilter.java
Mon Aug  5 21:37:58 2013
@@ -127,7 +127,7 @@ public class JAASAuthenticationFilter im
             StringBuilder sb = new StringBuilder();
             
             List<String> authHeader = headers.getRequestHeader(HttpHeaders.AUTHORIZATION);
-            if (authHeader.size() > 0) {
+            if (authHeader != null && authHeader.size() > 0) {
                 // should HttpHeadersImpl do it ?
                 String[] authValues = StringUtils.split(authHeader.get(0), " ");
                 if (authValues.length > 0) {



Mime
View raw message