diff --git a/source/de/anomic/search/MetadataRepository.java b/source/de/anomic/search/MetadataRepository.java index 90b8e5aba..8c7dc201d 100644 --- a/source/de/anomic/search/MetadataRepository.java +++ b/source/de/anomic/search/MetadataRepository.java @@ -367,11 +367,15 @@ public final class MetadataRepository implements Iterable { if (metadata == null) { if (Log.isFine("URLDBCLEANER")) Log.logFine("URLDBCLEANER", "corrupted entry for hash = " + entry.hash()); remove(entry.hash()); - } else if (metadata.url() == null) { + continue; + } + if (metadata.url() == null) { if (Log.isFine("URLDBCLEANER")) Log.logFine("URLDBCLEANER", ++blacklistedUrls + " blacklisted (" + ((double) blacklistedUrls / totalSearchedUrls) * 100 + "%): " + entry.hash() + "URL == null"); remove(entry.hash()); - } else if (blacklist.isListed(Blacklist.BLACKLIST_CRAWLER, metadata.url()) || - blacklist.isListed(Blacklist.BLACKLIST_DHT, metadata.url())) { + continue; + } + if (blacklist.isListed(Blacklist.BLACKLIST_CRAWLER, metadata.url()) || + blacklist.isListed(Blacklist.BLACKLIST_DHT, metadata.url())) { lastBlacklistedUrl = metadata.url().toNormalform(true, true); lastBlacklistedHash = entry.hash(); if (Log.isFine("URLDBCLEANER")) Log.logFine("URLDBCLEANER", ++blacklistedUrls + " blacklisted (" + ((double) blacklistedUrls / totalSearchedUrls) * 100 + "%): " + entry.hash() + " " + metadata.url().toNormalform(false, true));