cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [2/2] cxf git commit: Don't write out the permission name if it's null
Date Thu, 10 Dec 2015 16:51:11 GMT
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/59d27332
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/59d27332
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/59d27332

Branch: refs/heads/master
Commit: 59d273323765150a8719da1e739ad55645e178c1
Parents: c32ebfa
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:46:00 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/59d27332/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 0db2313..4974760 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
@@ -136,7 +136,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