GUAC-1193: Do not search for empty terms.
This commit is contained in:
1 parent
1b5663f5c0
commit
ae9a39edb9
1 file changed
+4
-2
+4
-2
@@ -124,8 +124,10 @@ public class HistoryRESTService {
|
||||
ConnectionRecordSet history = userContext.getConnectionHistory();
|
||||
|
||||
// Restrict to records which contain the specified strings
|
||||
for (String required : requiredContents)
|
||||
history = history.contains(required);
|
||||
for (String required : requiredContents) {
|
||||
if (!required.isEmpty())
|
||||
history = history.contains(required);
|
||||
}
|
||||
|
||||
// Sort according to specified ordering
|
||||
for (APIConnectionRecordSortPredicate predicate : sortPredicates)
|
||||
|
||||
Reference in new issue
Block a user