directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From plusplusjia...@apache.org
Subject directory-kerby git commit: Fix parsing option issue in KlistOption.
Date Tue, 05 Jan 2016 07:24:41 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/trunk 6e3e6e956 -> ddfc14efe


Fix parsing option issue in KlistOption.


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

Branch: refs/heads/trunk
Commit: ddfc14efe48ea042868f8015356011d7d14c7243
Parents: 6e3e6e9
Author: plusplusjiajia <jiajia.li@intel.com>
Authored: Tue Jan 5 15:31:28 2016 +0800
Committer: plusplusjiajia <jiajia.li@intel.com>
Committed: Tue Jan 5 15:31:28 2016 +0800

----------------------------------------------------------------------
 .../java/org/apache/kerby/kerberos/tool/klist/KlistOption.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/ddfc14ef/kerby-tool/client-tool/src/main/java/org/apache/kerby/kerberos/tool/klist/KlistOption.java
----------------------------------------------------------------------
diff --git a/kerby-tool/client-tool/src/main/java/org/apache/kerby/kerberos/tool/klist/KlistOption.java
b/kerby-tool/client-tool/src/main/java/org/apache/kerby/kerberos/tool/klist/KlistOption.java
index 7382387..e484563 100644
--- a/kerby-tool/client-tool/src/main/java/org/apache/kerby/kerberos/tool/klist/KlistOption.java
+++ b/kerby-tool/client-tool/src/main/java/org/apache/kerby/kerberos/tool/klist/KlistOption.java
@@ -55,7 +55,8 @@ public enum KlistOption implements KOption {
     public static KlistOption fromName(String name) {
         if (name != null) {
             for (KlistOption ko : values()) {
-                if (ko.name().equals(name)) {
+                if (ko.optionInfo != null
+                        && ko.optionInfo.getName().equals(name)) {
                     return ko;
                 }
             }


Mime
View raw message