hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-7418) Missing null check in HiveSQLException#toStackTrace()
Date Tue, 15 Jul 2014 22:57:04 GMT
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)

Mime
View raw message