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:03:47 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes 9d1a0e475 -> 8a9061137


[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/8a906113
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/8a906113
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/8a906113

Branch: refs/heads/3.0.x-fixes
Commit: 8a906113755ba86525d3cd32176b499ba4eec045
Parents: 9d1a0e4
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:03:14 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/8a906113/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