Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 812389C30 for ; Mon, 20 May 2013 21:13:16 +0000 (UTC) Received: (qmail 70618 invoked by uid 500); 20 May 2013 21:13:16 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 70556 invoked by uid 500); 20 May 2013 21:13:16 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 70488 invoked by uid 500); 20 May 2013 21:13:16 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 70435 invoked by uid 99); 20 May 2013 21:13:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 May 2013 21:13:16 +0000 Date: Mon, 20 May 2013 21:13:16 +0000 (UTC) From: "Xuefu Zhang (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-4566) NullPointerException if typeinfo and nativesql commands are executed at beeline before a DB connection is established MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-4566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xuefu Zhang updated HIVE-4566: ------------------------------ Status: Patch Available (was: Open) The patch is to fix the NPE. > NullPointerException if typeinfo and nativesql commands are executed at beeline before a DB connection is established > --------------------------------------------------------------------------------------------------------------------- > > Key: HIVE-4566 > URL: https://issues.apache.org/jira/browse/HIVE-4566 > Project: Hive > Issue Type: Bug > Components: CLI > Affects Versions: 0.11.0 > Reporter: Xuefu Zhang > Assignee: Xuefu Zhang > Attachments: HIVE-4566.patch > > > Before a DB connection is established, executing a command such as typeinfo and nativesql results an NPE shown at the console: > beeline> !typeinfo > java.lang.NullPointerException > beeline> !nativesql > java.lang.NullPointerException > Instead, a message, such as "No current connection" should be given, as in case of some other commands, such as dropall. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira