Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EAB37200BD0 for ; Wed, 30 Nov 2016 18:39:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E97B8160B28; Wed, 30 Nov 2016 17:39:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6CB1B160B13 for ; Wed, 30 Nov 2016 18:39:59 +0100 (CET) Received: (qmail 29819 invoked by uid 500); 30 Nov 2016 17:39:58 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 29792 invoked by uid 99); 30 Nov 2016 17:39:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Nov 2016 17:39:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 652E52C1F56 for ; Wed, 30 Nov 2016 17:39:58 +0000 (UTC) Date: Wed, 30 Nov 2016 17:39:58 +0000 (UTC) From: "Yu Li (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-17212) Should add null checker on table name in HTable and RegionServerCallable constructor MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 30 Nov 2016 17:40:00 -0000 [ https://issues.apache.org/jira/browse/HBASE-17212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yu Li updated HBASE-17212: -------------------------- Attachment: HBASE-17212.v2.patch Patch v2 also covers the RegionServerCallable case > Should add null checker on table name in HTable and RegionServerCallable constructor > ------------------------------------------------------------------------------------ > > Key: HBASE-17212 > URL: https://issues.apache.org/jira/browse/HBASE-17212 > Project: HBase > Issue Type: Improvement > Affects Versions: 2.0.0 > Reporter: Yu Li > Assignee: Yu Li > Attachments: HBASE-17212.patch, HBASE-17212.v2.patch > > > If we run below codes: > {code} > Table table = connection.getTable(null); > {code} > we will see below exception: > {noformat} > java.lang.NullPointerException > at org.apache.hadoop.hbase.client.HTable.finishSetup(HTable.java:221) > at org.apache.hadoop.hbase.client.HTable.(HTable.java:182) > at org.apache.hadoop.hbase.client.ConnectionImplementation.getTable(ConnectionImplementation.java:298) > at org.apache.hadoop.hbase.client.ConnectionImplementation.getTable(ConnectionImplementation.java:293) > {noformat} > And in this JIRA we will add a null checker and throw a more graceful {{IllegalArgumentException}} -- This message was sent by Atlassian JIRA (v6.3.4#6332)