directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [1/2] directory-kerby git commit: NPE fix if there are no audiences in the token
Date Tue, 11 Jul 2017 11:11:56 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/trunk 0e3234bca -> 08129710a


NPE fix if there are no audiences in the token


Project: http://git-wip-us.apache.org/repos/asf/directory-kerby/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-kerby/commit/e5192177
Tree: http://git-wip-us.apache.org/repos/asf/directory-kerby/tree/e5192177
Diff: http://git-wip-us.apache.org/repos/asf/directory-kerby/diff/e5192177

Branch: refs/heads/trunk
Commit: e519217727625f0e4557a04b29af36b40c18e69b
Parents: 0e3234b
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Tue Jul 11 11:25:43 2017 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Tue Jul 11 11:25:43 2017 +0100

----------------------------------------------------------------------
 .../java/org/apache/kerby/kerberos/kerb/type/base/KrbToken.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/e5192177/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/type/base/KrbToken.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/type/base/KrbToken.java
b/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/type/base/KrbToken.java
index beb5ffb..d1637b5 100644
--- a/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/type/base/KrbToken.java
+++ b/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/type/base/KrbToken.java
@@ -103,7 +103,7 @@ public class KrbToken extends KrbTokenBase implements AuthToken {
      */
     public void setTokenType() {
         List<String> audiences = this.innerToken.getAudiences();
-        if (audiences.size() == 1 && audiences.get(0).startsWith(KrbConstant.TGS_PRINCIPAL))
{
+        if (audiences != null && audiences.size() == 1 && audiences.get(0).startsWith(KrbConstant.TGS_PRINCIPAL))
{
             isIdToken(true);
         } else {
             isAcToken(true);


Mime
View raw message