cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [1/4] cxf git commit: Don't write out the permission name if it's null
Date Thu, 10 Dec 2015 17:07:21 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes 0678d530b -> b1fc5e49b


Don't write out the permission name if it's null


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

Branch: refs/heads/3.0.x-fixes
Commit: 36b35b9acf50dd87856f17614c78b8cf965a796d
Parents: 0678d53
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Thu Dec 10 12:44:20 2015 +0000
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Thu Dec 10 16:59:46 2015 +0000

----------------------------------------------------------------------
 .../java/org/apache/cxf/rs/security/oauth2/utils/OAuthUtils.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/36b35b9a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/OAuthUtils.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/OAuthUtils.java
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/OAuthUtils.java
index 59d1da7..1941a7c 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/OAuthUtils.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/OAuthUtils.java
@@ -118,7 +118,9 @@ public final class OAuthUtils {
             if (sb.length() > 0) {
                 sb.append(" ");
             }
-            sb.append(perm.getPermission());
+            if (perm.getPermission() != null) {
+                sb.append(perm.getPermission());
+            }
         }
         return sb.toString();
     }


Mime
View raw message