]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-6406: Fix infinite loop in LazyAuthorityRefDocList.java when page size is 0.
authorRay Lee <rhlee@berkeley.edu>
Mon, 25 Aug 2014 23:41:46 +0000 (16:41 -0700)
committerRay Lee <rhlee@berkeley.edu>
Mon, 25 Aug 2014 23:41:46 +0000 (16:41 -0700)
services/common/src/main/java/org/collectionspace/services/common/vocabulary/LazyAuthorityRefDocList.java

index a1570e5360187d2d7becd9832b76f17032fcd58b..7a0b85691c56eae268936041184e82a4489e930e 100644 (file)
@@ -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();
                        }