Skip to content

Commit 7dcbda4

Browse files
author
Lucien van Wouw
committed
Bug IISH#14: maxsize is an array of zero elements when empty. Do not use a null comparison.
1 parent 5c7d8c7 commit 7dcbda4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: oai2-plugin/src/main/java/org/socialhistoryservices/api/oai/OAIRequestHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ public void init(NamedList args) {
325325
}
326326

327327
final List maxrecords = args.getAll("maxrecords");
328-
if (maxrecords == null)
328+
if (maxrecords.size() == 0)
329329
Parameters.setParam(args, "maxrecords_default", 200);
330330
else {
331331
SolrParams p = SolrParams.toSolrParams((NamedList) maxrecords.get(0));

0 commit comments

Comments
 (0)