cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject cxf git commit: NPE fix
Date Wed, 29 Jun 2016 17:32:22 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 6df5deab2 -> 3a1fa0b23


NPE fix


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

Branch: refs/heads/master
Commit: 3a1fa0b23f1778594b6339dfcfbc90dcc43a87d4
Parents: 6df5dea
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Wed Jun 29 18:32:14 2016 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Wed Jun 29 18:32:14 2016 +0100

----------------------------------------------------------------------
 .../oauth2/client/MemoryClientTokenContextManager.java         | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/3a1fa0b2/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/client/MemoryClientTokenContextManager.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/client/MemoryClientTokenContextManager.java
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/client/MemoryClientTokenContextManager.java
index 5ffb810..ca062be 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/client/MemoryClientTokenContextManager.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/client/MemoryClientTokenContextManager.java
@@ -40,7 +40,11 @@ public class MemoryClientTokenContextManager implements ClientTokenContextManage
 
     @Override
     public ClientTokenContext getClientTokenContext(MessageContext mc) {
-        return map.get(getKey(mc, false));
+        String key = getKey(mc, false);
+        if (key != null) {
+            return map.get(key);
+        }
+        return null;
     }
 
     @Override


Mime
View raw message