GUAC-1193: Do not search for empty terms.

This commit is contained in:
James Muehlner
2015-10-06 23:05:18 -07:00
parent 1b5663f5c0
commit ae9a39edb9

View File

@@ -124,8 +124,10 @@ public class HistoryRESTService {
ConnectionRecordSet history = userContext.getConnectionHistory(); ConnectionRecordSet history = userContext.getConnectionHistory();
// Restrict to records which contain the specified strings // Restrict to records which contain the specified strings
for (String required : requiredContents) for (String required : requiredContents) {
history = history.contains(required); if (!required.isEmpty())
history = history.contains(required);
}
// Sort according to specified ordering // Sort according to specified ordering
for (APIConnectionRecordSortPredicate predicate : sortPredicates) for (APIConnectionRecordSortPredicate predicate : sortPredicates)