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

Navis commented on HIVE-7418:
-----------------------------

For root exception, there is no common part.

> 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)

Reply via email to