[ https://issues.apache.org/jira/browse/HIVE-24782?focusedWorklogId=553676&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-553676 ]
ASF GitHub Bot logged work on HIVE-24782: ----------------------------------------- Author: ASF GitHub Bot Created on: 17/Feb/21 15:26 Start Date: 17/Feb/21 15:26 Worklog Time Spent: 10m Work Description: lcspinter commented on pull request #1989: URL: https://github.com/apache/hive/pull/1989#issuecomment-780632859 Thanks for the patch @jayp12323. Submitted to master. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 553676) Time Spent: 0.5h (was: 20m) > Fix in HIVE-22889 introduced NPE when using non-WebHCat HCat components > ----------------------------------------------------------------------- > > Key: HIVE-24782 > URL: https://issues.apache.org/jira/browse/HIVE-24782 > Project: Hive > Issue Type: Bug > Components: HCatalog > Reporter: Jason Phelps > Assignee: Jason Phelps > Priority: Major > Labels: pull-request-available > Attachments: HIVE-24782-001.patch, HIVE-24782-002.patch > > Time Spent: 0.5h > Remaining Estimate: 0h > > In HIVE-22889, it introduced the following lines: > {code:java} > // remove the leading and trailing quotes. hcatalog can miss on some > cases. > if (execString.length() > 1 && execString.startsWith("\"") && > execString.endsWith("\"")) { > execString = execString.substring(1, execString.length() - 1); > } > {code} > When calling Sqoop HCat jobs, or the HCat CLI, it will throw an NPE because > execString is null but not wrapped in the handy Null check that is nearby > {code:java} > if (execString != null) { > {code} > -- This message was sent by Atlassian Jira (v8.3.4#803005)