hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From viraj...@apache.org
Subject hadoop git commit: HDFS-13311. RBF: TestRouterAdminCLI#testCreateInvalidEntry fails on Windows. Contributed by Inigo Goiri
Date Mon, 16 Apr 2018 23:07:33 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2.9 8a461bb17 -> 337392aac


HDFS-13311. RBF: TestRouterAdminCLI#testCreateInvalidEntry fails on Windows. Contributed by
Inigo Goiri


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/337392aa
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/337392aa
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/337392aa

Branch: refs/heads/branch-2.9
Commit: 337392aacba983c3d0d41840228a8eef4a564ad6
Parents: 8a461bb
Author: Virajith Jalaparti <virajith@apache.org>
Authored: Mon Apr 16 16:07:15 2018 -0700
Committer: Virajith Jalaparti <virajith@apache.org>
Committed: Mon Apr 16 16:07:15 2018 -0700

----------------------------------------------------------------------
 .../main/java/org/apache/hadoop/util/GenericOptionsParser.java    | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/337392aa/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/GenericOptionsParser.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/GenericOptionsParser.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/GenericOptionsParser.java
index 7b0a25c..a8a513d 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/GenericOptionsParser.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/GenericOptionsParser.java
@@ -525,6 +525,9 @@ public class GenericOptionsParser {
     }
     List<String> newArgs = new ArrayList<String>(args.length);
     for (int i=0; i < args.length; i++) {
+      if (args[i] == null) {
+        continue;
+      }
       String prop = null;
       if (args[i].equals("-D")) {
         newArgs.add(args[i]);


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message