Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
The TestAddPartitions and TestAddPartitionsFromPartSpec tests revealed that NPE is thrown in some cases. 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
- TestAddPartitions
- testAddPartitionNullPartition
- testAddPartitionNullValue
- testAddPartitionsNullList
- TestAddPartitionsFromPartSpec
- testAddPartitionSpecNullSpec
- testAddPartitionSpecNullPartList
- testAddPartitionSpecNoDB
- testAddPartitionSpecNoTable
- testAddPartitionSpecNoDBAndTableInPartition
- testAddPartitionSpecNullPart
- testAddPartitionSpecChangeRootPathToNull
- testAddPartitionSpecWithSharedSDNullSd
- testAddPartitionSpecWithSharedSDNoValue
- testAddPartitionSpecNullValue