From e6577a182ee0d4304e6391e978b782c3ad55c762 Mon Sep 17 00:00:00 2001 From: Ray Lee Date: Mon, 25 Aug 2014 16:41:46 -0700 Subject: [PATCH] CSPACE-6406: Fix infinite loop in LazyAuthorityRefDocList.java when page size is 0. --- .../services/common/vocabulary/LazyAuthorityRefDocList.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/common/src/main/java/org/collectionspace/services/common/vocabulary/LazyAuthorityRefDocList.java b/services/common/src/main/java/org/collectionspace/services/common/vocabulary/LazyAuthorityRefDocList.java index a1570e536..7a0b85691 100644 --- a/services/common/src/main/java/org/collectionspace/services/common/vocabulary/LazyAuthorityRefDocList.java +++ b/services/common/src/main/java/org/collectionspace/services/common/vocabulary/LazyAuthorityRefDocList.java @@ -174,7 +174,7 @@ public class LazyAuthorityRefDocList extends DocumentModelListImpl { // The current page is exhausted. - if (currentPageDocList.size() < pageSize) { + if (pageSize == 0 || (currentPageDocList.size() < pageSize)) { // There are no more pages. return endOfData(); } -- 2.47.3