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
This commit is contained in:
sixcooler 2011-06-05 22:58:17 +00:00
parent bce280a308
commit 7bfa6bb4b6

View File

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