PL-7476 Paging does not work when using in-memory security constraints (error when no data found by first query)

This commit is contained in:
Andrey Subbotin 2016-07-12 18:04:11 +04:00
parent fc373ee96f
commit 9b5299899e

View File

@ -606,7 +606,7 @@ public class DataManagerBean implements DataManager {
}
int setSize = initialSize + requestedFirst;
int factor = initialSize / filteredCollection.size() * 2;
int factor = filteredCollection.size() == 0 ? 2 : initialSize / filteredCollection.size() * 2;
filteredCollection.clear();