You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Lars Francke (JIRA)" <ji...@apache.org> on 2014/10/23 20:13:34 UTC
[jira] [Created] (HIVE-8576) Guaranteed NPE in
StatsRulesProcFactory
Lars Francke created HIVE-8576:
----------------------------------
Summary: Guaranteed NPE in StatsRulesProcFactory
Key: HIVE-8576
URL: https://issues.apache.org/jira/browse/HIVE-8576
Project: Hive
Issue Type: Bug
Reporter: Lars Francke
Assignee: Lars Francke
Code looks like this:
{code}
private List<Integer> getPrimaryKeyCandidates(List<Operator<? extends OperatorDesc>> ops) {
List<Integer> result = Lists.newArrayList();
if (ops != null || !ops.isEmpty()) {
for (int i = 0; i < ops.size(); i++) {
{code}
The {{||}} should be {{&&}} as the current {{if}} statement can be rewritten as {{!(ops == null && ops.isEmpty())}} which doesn't make sense.
Or am I missing something?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)