*) fixed small bug with large effect (OOM exception hazard when "show all" was selected for a blacklist)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5594 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
low012 2009-02-10 23:46:51 +00:00
parent 6a32193916
commit 4c11843eba

View File

@ -403,8 +403,13 @@ public class Blacklist_p {
int start = -1;
if (sortedlist.length > 0) {
while (end < sortedlist.length) {
start = entryCount * size;
end = (entryCount + 1) * size;
if (size > 0) {
start = entryCount * size;
end = (entryCount + 1) * size;
} else {
start = 0;
end = sortedlist.length;
}
prop.put(DISABLED + EDIT + "subListOffset_" + entryCount + "_value", start);
prop.put(DISABLED + EDIT + "subListOffset_" + entryCount + "_fvalue", start + 1);
if (end > sortedlist.length) {