[
https://issues.apache.org/jira/browse/HIVE-7418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ted Yu resolved HIVE-7418.
--------------------------
Resolution: Not a Problem
> Missing null check in HiveSQLException#toStackTrace()
> -----------------------------------------------------
>
> Key: HIVE-7418
> URL: https://issues.apache.org/jira/browse/HIVE-7418
> Project: Hive
> Issue Type: Bug
> Reporter: Ted Yu
> Priority: Minor
>
> {code}
> public static Throwable toCause(List<String> details) {
> return toStackTrace(details, null, 0);
> {code}
> null is passed to toStackTrace(as parent) where:
> {code}
> if (common > 0) {
> System.arraycopy(parent, parent.length - common, trace, trace.length -
> common, common);
> }
> {code}
> parent.length may throw NPE.
--
This message was sent by Atlassian JIRA
(v6.2#6252)