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/06/27 20:04:24 UTC
[jira] [Created] (HIVE-7306) Ineffective null check in
GenericUDAFAverage#GenericUDAFAverageEvaluatorDouble#getNextResult()
Ted Yu created HIVE-7306:
----------------------------
Summary: Ineffective null check in GenericUDAFAverage#GenericUDAFAverageEvaluatorDouble#getNextResult()
Key: HIVE-7306
URL: https://issues.apache.org/jira/browse/HIVE-7306
Project: Hive
Issue Type: Bug
Reporter: Ted Yu
Priority: Minor
{code}
Object[] o = ss.intermediateVals.remove(0);
Double d = o == null ? 0.0 : (Double) o[0];
r = r == null ? null : r - d;
cnt = cnt - ((Long) o[1]);
{code}
Array o is accessed without null check in the last line above.
--
This message was sent by Atlassian JIRA
(v6.2#6252)