Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix for exception in http://forum.yacy-websuche.de/viewtopic.php?p=20418#p20418
orbiter89b0f5bce87d
diff --git a/source/de/anomic/search/MetadataRepository.java b/source/de/anomic/search/MetadataRepository.javaindex 8283f4107..0c4c4a6e0 100644--- a/source/de/anomic/search/MetadataRepository.java+++ b/source/de/anomic/search/MetadataRepository.java@@ -133,8 +133,9 @@ public final class MetadataRepository implements Iterable<byte[]> {public void store(final URIMetadataRow entry) throws IOException {// Check if there is a more recent Entry already in the DBURIMetadataRow oldEntry;+ if (urlIndexFile == null) return; // case may happen during shutdown or startuptry {- Row.Entry oe = (urlIndexFile == null) ? null : urlIndexFile.get(entry.hash());+ Row.Entry oe = urlIndexFile.get(entry.hash());oldEntry = (oe == null) ? null : new URIMetadataRow(oe, null, 0);} catch (final Exception e) {Log.logException(e);