Fix Conjunction.addOperator to do nothing if term is empty
prevent to result in query string with repeated logical operator
like "field:term AND AND field:term"
possibliy causing out of mem in postprocessing_doublecontent
pull/149/head
reger 8 years ago
parent d03e2c98ea
commit 2a07799ad1

@ -27,7 +27,7 @@ public abstract class AbstractOperations extends AbstractTerm implements Operati
*/
@Override
public void addOperand(Term term) {
if (term.toString().isEmpty()) {
if (!term.toString().isEmpty()) {
this.terms.add(term);
}
}

Loading…
Cancel
Save