Commit ade953a6 authored by Rob Tomsick's avatar Rob Tomsick

Fix OOBE

parent b104a1a0
......@@ -289,7 +289,7 @@ implements DictionaryService
products.sort(comparatorFor(query, p -> {
/* prop name and NPNs - use whatever's closes to query */
/* prop name and NPNs - use whatever's closest to query */
List<String> names = new ArrayList<>(p.nonProprietaryNames());
names.add(p.name());
......@@ -302,7 +302,9 @@ implements DictionaryService
}));
return new ArrayList<Product>(products.subList(0, limit));
int max = (products.size() < limit ? products.size() : limit);
return new ArrayList<Product>(products.subList(0, max));
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment