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:
orbiter 2007-11-12 15:54:50 +00:00
parent 64b3b79e44
commit 875096552f
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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) {