Skip to content

Commit

Permalink
LPS-32041 Check for case where the array is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchandotcom committed Sep 4, 2013
1 parent 7f9b0c1 commit c8ca5b6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ protected String getFilterQuery(String field, long value) {
}

protected String getFilterQuery(String field, long[] values) {
if (ArrayUtil.isEmpty(values)) {
return StringPool.BLANK;
}

StringBundler sb = new StringBundler(6 * values.length - 2);

for (int i = 0; i < values.length; i ++) {
Expand Down

0 comments on commit c8ca5b6

Please sign in to comment.