You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ha...@apache.org on 2015/06/28 06:40:24 UTC
hive git commit: HIVE-11135 : Fix the Beeline set and save command in
order to avoid the NullPointerException (Shinichi Yamashita via Xuefu Zhang)
Repository: hive
Updated Branches:
refs/heads/master abc7477bf -> 7c7a6242c
HIVE-11135 : Fix the Beeline set and save command in order to avoid the NullPointerException (Shinichi Yamashita via Xuefu Zhang)
Signed-off-by: Ashutosh Chauhan <ha...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/7c7a6242
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/7c7a6242
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/7c7a6242
Branch: refs/heads/master
Commit: 7c7a6242c26c23c03037756df2fc1dd321c9c934
Parents: abc7477
Author: Shinichi Yamashita <ya...@oss.nttdata.co.jp>
Authored: Thu Jun 18 19:59:00 2015 -0700
Committer: Ashutosh Chauhan <ha...@apache.org>
Committed: Sat Jun 27 21:40:10 2015 -0700
----------------------------------------------------------------------
beeline/src/java/org/apache/hive/beeline/BeeLineOpts.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hive/blob/7c7a6242/beeline/src/java/org/apache/hive/beeline/BeeLineOpts.java
----------------------------------------------------------------------
diff --git a/beeline/src/java/org/apache/hive/beeline/BeeLineOpts.java b/beeline/src/java/org/apache/hive/beeline/BeeLineOpts.java
index c1ec82a..d8b8b78 100644
--- a/beeline/src/java/org/apache/hive/beeline/BeeLineOpts.java
+++ b/beeline/src/java/org/apache/hive/beeline/BeeLineOpts.java
@@ -197,9 +197,9 @@ class BeeLineOpts implements Completer {
String[] names = propertyNames();
for (int i = 0; names != null && i < names.length; i++) {
+ Object o = beeLine.getReflector().invoke(this, "get" + names[i], new Object[0]);
props.setProperty(PROPERTY_PREFIX + names[i],
- beeLine.getReflector().invoke(this, "get" + names[i], new Object[0])
- .toString());
+ o == null ? "" : o.toString());
}
beeLine.debug("properties: " + props.toString());
return props;