mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-21 00:00:13 +02:00
fix for NPE in case that remote search results are empty
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4209 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
parent
64b3b79e44
commit
875096552f
|
@ -64,7 +64,7 @@ public class indexRWIEntryOrder extends kelondroAbstractOrder implements kelondr
|
|||
if (this.max == null) this.max = mmf0.entryMax; else indexRWIVarEntry.max(this.max, mmf0.entryMax);
|
||||
//long s1= System.currentTimeMillis(), sc = Math.max(1, s1 - s0);
|
||||
//System.out.println("***DEBUG*** indexRWIEntry.Order (2-THREADED): " + sc + " milliseconds for " + container.size() + " entries, " + (container.size() / sc) + " entries/millisecond");
|
||||
} else {
|
||||
} else if (container.size() > 0) {
|
||||
// run minmax in one thread
|
||||
minmaxfinder mmf = new minmaxfinder(container, 0, container.size());
|
||||
mmf.run(); // execute without multi-threading
|
||||
|
|
|
@ -81,6 +81,7 @@ public final class plasmaSearchRankingProcess {
|
|||
// attention: if minEntries is too high, this method will not terminate within the maxTime
|
||||
|
||||
assert (container != null);
|
||||
if (container.size() == 0) return;
|
||||
|
||||
process.startTimer();
|
||||
if (this.order == null) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user