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:38:36 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 206738103 -> 70bfd047a


NPE fix


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

Branch: refs/heads/3.1.x-fixes
Commit: 70bfd047a6f4337349358daf7c08ae5875d6c2b3
Parents: 2067381
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:38:04 2016 +0100

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


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