prevent getting a yacySeed from zero-length-hash-string by chance

(for eg.: proxy-crawls got displayed as initiated by some other peer)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7776 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
sixcooler 14 years ago
parent bce280a308
commit 7bfa6bb4b6

@ -576,7 +576,7 @@ public final class yacySeedDB implements AlternativeDomainNames {
}
private yacySeed get(final String hash, final MapDataMining database) {
if (hash == null) return null;
if (hash == null || hash.length() == 0) return null;
if ((this.mySeed != null) && (hash.equals(mySeed.hash))) return mySeed;
ConcurrentHashMap<String, String> entry = new ConcurrentHashMap<String, String>();
try {

Loading…
Cancel
Save