directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [36/50] [abbrv] directory-kerby git commit: DIRKRB-584 - NPE if the token issuers value is not specified
Date Fri, 21 Jul 2017 11:27:23 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/653f1762
Tree: http://git-wip-us.apache.org/repos/asf/directory-kerby/tree/653f1762
Diff: http://git-wip-us.apache.org/repos/asf/directory-kerby/diff/653f1762

Branch: refs/heads/gssapi
Commit: 653f1762ba271dfa9e6107dcb6825c7eb835540b
Parents: f904cda
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Wed Jun 15 17:05:57 2016 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Fri Jul 21 12:25:51 2017 +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/653f1762/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