From: Ray Lee Date: Mon, 25 Aug 2014 23:41:46 +0000 (-0700) Subject: CSPACE-6406: Fix infinite loop in LazyAuthorityRefDocList.java when page size is 0. X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=e6577a182ee0d4304e6391e978b782c3ad55c762;p=tmp%2Fjakarta-migration.git CSPACE-6406: Fix infinite loop in LazyAuthorityRefDocList.java when page size is 0. --- 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(); }