Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
Small fix for the Cache Monitor when using proxyCacheLayout=hash see: http://www.yacy-forum.de/viewtopic.php?p=27394#27394
hermens838555767291
diff --git a/source/de/anomic/plasma/plasmaHTCache.java b/source/de/anomic/plasma/plasmaHTCache.javaindex 18d083f85..496cd430e 100644--- a/source/de/anomic/plasma/plasmaHTCache.java+++ b/source/de/anomic/plasma/plasmaHTCache.java@@ -712,7 +712,7 @@ public final class plasmaHTCache {* This is a helper funktion that extracts the Hash from the filename*/public static String getHash(final File f) {- if ((f.getPath().indexOf("hash")) < 0) return null;+ if ((!f.isFile()) || (f.getPath().indexOf("hash") < 0)) return null;String hexHash = f.getName().substring(0,18);if (hexHash.indexOf('.') >= 0) return null;try {