mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
*) 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:
parent
6a32193916
commit
4c11843eba
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user