cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject git commit: NPE fix
Date Wed, 06 Aug 2014 16:42:27 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 71488c6fa -> b9f47488b


NPE fix


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

Branch: refs/heads/master
Commit: b9f47488b223a386572719ce93534abbd57bbc55
Parents: 71488c6
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Wed Aug 6 17:42:16 2014 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Wed Aug 6 17:42:16 2014 +0100

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


http://git-wip-us.apache.org/repos/asf/cxf/blob/b9f47488/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