directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From plusplusjia...@apache.org
Subject [05/26] directory-kerby git commit: DIRKRB-584 - NPE if the token issuers value is not specified
Date Tue, 05 Jul 2016 07:16:53 GMT
DIRKRB-584 - NPE if the token issuers value is not specified


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

Branch: refs/heads/kadmin-remote
Commit: 4b3e7042d9daca1f1bdb9c0536fa14610ca1498d
Parents: 8da8d90
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Wed Jun 15 17:05:57 2016 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Wed Jun 15 17:05:57 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/kerby/kerberos/kerb/common/Krb5Conf.java   | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/4b3e7042/kerby-kerb/kerb-common/src/main/java/org/apache/kerby/kerberos/kerb/common/Krb5Conf.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-common/src/main/java/org/apache/kerby/kerberos/kerb/common/Krb5Conf.java
b/kerby-kerb/kerb-common/src/main/java/org/apache/kerby/kerberos/kerb/common/Krb5Conf.java
index 1dba876..7c4ae74 100644
--- a/kerby-kerb/kerb-common/src/main/java/org/apache/kerby/kerberos/kerb/common/Krb5Conf.java
+++ b/kerby-kerb/kerb-common/src/main/java/org/apache/kerby/kerberos/kerb/common/Krb5Conf.java
@@ -160,8 +160,10 @@ public class Krb5Conf extends Conf {
     protected String[] getStringArray(ConfigKey key, boolean useDefault,
                                       String ... sections) {
         String value = getString(key, useDefault, sections);
-        String[] values = value.split(LIST_SPLITTER);
-        return values;
+        if (value != null) {
+            return value.split(LIST_SPLITTER);
+        }
+        return new String[]{};
     }
 
     protected Object getSection(String sectionName) {


Mime
View raw message