You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2014/07/16 00:57:04 UTC

[jira] [Created] (HIVE-7418) Missing null check in HiveSQLException#toStackTrace()

Ted Yu created HIVE-7418:
----------------------------

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