null check (oops)

This commit is contained in:
jrandom
2004-07-20 04:10:33 +00:00
committed by zzz
parent bb0817a2ec
commit f06e21ff5a

View File

@ -201,7 +201,10 @@ public class ProfileOrganizer {
// we only use selectHighCapacityPeers when we are selecting for PURPOSE_TEST
// or we are falling back due to _fastPeers being too small, so we can always
// exclude the fast peers
exclude.addAll(_fastPeers.keySet());
if (exclude == null)
exclude = new HashSet(_fastPeers.keySet());
else
exclude.addAll(_fastPeers.keySet());
locked_selectPeers(_highCapacityPeers, howMany, exclude, matches);
}
if (matches.size() < howMany)