cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject git commit: NPE fix
Date Wed, 06 Aug 2014 18:15:49 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes ca40783c0 -> 300105443


NPE fix


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/30010544
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/30010544
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/30010544

Branch: refs/heads/3.0.x-fixes
Commit: 300105443ed39e3bcaf1b2f7ea0062d4e4b21ba6
Parents: ca40783
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Wed Aug 6 17:42:16 2014 +0100
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Wed Aug 6 21:15:35 2014 +0300

----------------------------------------------------------------------
 .../apache/cxf/jaxrs/security/KerberosAuthenticationFilter.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/30010544/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/KerberosAuthenticationFilter.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/KerberosAuthenticationFilter.java
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/KerberosAuthenticationFilter.java
index abc2bf4..c23739b 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/KerberosAuthenticationFilter.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/KerberosAuthenticationFilter.java
@@ -73,7 +73,7 @@ public class KerberosAuthenticationFilter implements ContainerRequestFilter
{
         
         List<String> authHeaders = messageContext.getHttpHeaders()
             .getRequestHeader(HttpHeaders.AUTHORIZATION);
-        if (authHeaders.size() != 1) {
+        if (authHeaders == null || authHeaders.size() != 1) {
             LOG.fine("No Authorization header is available");
             throw ExceptionUtils.toNotAuthorizedException(null, getFaultResponse());
         }


Mime
View raw message