Return-Path: X-Original-To: apmail-hive-commits-archive@www.apache.org Delivered-To: apmail-hive-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6056F1864A for ; Tue, 13 Oct 2015 23:49:49 +0000 (UTC) Received: (qmail 16709 invoked by uid 500); 13 Oct 2015 23:49:49 -0000 Delivered-To: apmail-hive-commits-archive@hive.apache.org Received: (qmail 16660 invoked by uid 500); 13 Oct 2015 23:49:49 -0000 Mailing-List: contact commits-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hive.apache.org Delivered-To: mailing list commits@hive.apache.org Received: (qmail 16649 invoked by uid 99); 13 Oct 2015 23:49:49 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Oct 2015 23:49:49 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A0B00E0286; Tue, 13 Oct 2015 23:49:48 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: gopalv@apache.org To: commits@hive.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: hive git commit: HIVE-11578: Fix NPE in ExplainWork (Rajesh Balamohan, via Gopal V) Date: Tue, 13 Oct 2015 23:49:48 +0000 (UTC) Repository: hive Updated Branches: refs/heads/branch-1 e190aa61a -> fb4622af8 HIVE-11578: Fix NPE in ExplainWork (Rajesh Balamohan, via Gopal V) Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/fb4622af Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/fb4622af Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/fb4622af Branch: refs/heads/branch-1 Commit: fb4622af8e7bc7620a534757da6278a66930bdc1 Parents: e190aa6 Author: Gopal V Authored: Tue Oct 13 16:17:15 2015 -0700 Committer: Gopal V Committed: Tue Oct 13 16:33:26 2015 -0700 ---------------------------------------------------------------------- ql/src/java/org/apache/hadoop/hive/ql/plan/ExplainWork.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/fb4622af/ql/src/java/org/apache/hadoop/hive/ql/plan/ExplainWork.java ---------------------------------------------------------------------- diff --git a/ql/src/java/org/apache/hadoop/hive/ql/plan/ExplainWork.java b/ql/src/java/org/apache/hadoop/hive/ql/plan/ExplainWork.java index aa208a5..ea4ce44 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/plan/ExplainWork.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/plan/ExplainWork.java @@ -77,7 +77,9 @@ public class ExplainWork implements Serializable { this.fetchTask = fetchTask; this.astStringTree = astStringTree; this.analyzer = analyzer; - this.inputs = analyzer.getInputs(); + if (analyzer != null) { + this.inputs = analyzer.getInputs(); + } this.extended = extended; this.formatted = formatted; this.dependency = dependency;