[ 
https://issues.apache.org/jira/browse/HIVE-8342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

skrho updated HIVE-8342:
------------------------
    Attachment: HIVE-8342_001.patch

jobClose method is setting null object in FileSingDesc parameter,  when calling 
 Utilities.mvFileToFinalPath method.. 
And  mvFileToFinalPath method is calling createEmptyBuckets method..

First.. I added the code in createEmptyBuckets method , which is null checker 
if FileSinkDesc object null 

But util class can be called everywhere~~
So I changed logic from null checker to throw new exception if null object

How about that? ^^





> Potential null dereference in ColumnTruncateMapper#jobClose()
> -------------------------------------------------------------
>
>                 Key: HIVE-8342
>                 URL: https://issues.apache.org/jira/browse/HIVE-8342
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: skrho
>            Priority: Minor
>         Attachments: HIVE-8342_001.patch
>
>
> {code}
>     Utilities.mvFileToFinalPath(outputPath, job, success, LOG, dynPartCtx, 
> null,
>       reporter);
> {code}
> Utilities.mvFileToFinalPath() calls createEmptyBuckets() where conf is 
> dereferenced:
> {code}
>     boolean isCompressed = conf.getCompressed();
>     TableDesc tableInfo = conf.getTableInfo();
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to