[ 
https://issues.apache.org/jira/browse/HIVE-19075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16431845#comment-16431845
 ] 

Marta Kuczora commented on HIVE-19075:
--------------------------------------

Thanks a lot [~pvary] for committing the patch.

> Fix NPE when trying to drop or get DB with null name
> ----------------------------------------------------
>
>                 Key: HIVE-19075
>                 URL: https://issues.apache.org/jira/browse/HIVE-19075
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>            Reporter: Marta Kuczora
>            Assignee: Marta Kuczora
>            Priority: Minor
>             Fix For: 3.0.0
>
>         Attachments: HIVE-19075.1.patch, HIVE-19075.2.patch, 
> HIVE-19075.3.patch
>
>
> The TestDatabases tests revealed that NPE is thrown if theĀ get_database_core 
> and drop_database_core methods are called with null DB name. These NPEs could 
> be prevented with a simple null check and a MetaException with a proper error 
> message should be thrown instead.
> Example: NPE is thrown in the following test cases
>  * TestDatabases.testGetDatabaseNullName
>  * TestDatabases.testDropDatabaseNullName



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to