cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-6153] Fixing NPE
Date Fri, 12 Dec 2014 17:02:28 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 1946e323a -> 002890617


[CXF-6153] Fixing NPE


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

Branch: refs/heads/master
Commit: 002890617019d1e706a32847b71952f1e99f2c68
Parents: 1946e32
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Fri Dec 12 17:02:08 2014 +0000
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Fri Dec 12 17:02:08 2014 +0000

----------------------------------------------------------------------
 .../apache/cxf/rs/security/oauth2/utils/AuthorizationUtils.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/00289061/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/AuthorizationUtils.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/AuthorizationUtils.java
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/AuthorizationUtils.java
index a22f171..09df5ef 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/AuthorizationUtils.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/AuthorizationUtils.java
@@ -73,7 +73,7 @@ public final class AuthorizationUtils {
                                                  Set<String> challenges,
                                                  String realm) {
         List<String> headers = mc.getHttpHeaders().getRequestHeader("Authorization");
-        if (headers.size() == 1) {
+        if (headers != null && headers.size() == 1) {
             String[] parts = headers.get(0).split(" ");
             if (parts.length > 0 
                 && (challenges == null || challenges.isEmpty() || challenges.contains(parts[0])))
{


Mime
View raw message