mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
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:
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…
Reference in New Issue
Block a user