Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
try to fix a nullpointer on snippet generation
allo4922ab892096
diff --git a/htroot/Bookmarks.java b/htroot/Bookmarks.javaindex 96b7b0d15..2f8a8b8c0 100644--- a/htroot/Bookmarks.java+++ b/htroot/Bookmarks.java@@ -148,7 +148,10 @@ public class Bookmarks {if (bookmark == null) {// try to get the bookmark from the LURL databaseplasmaCrawlLURL.Entry urlentry = switchboard.urlPool.loadedURL.load(urlHash, null);- plasmaParserDocument document = switchboard.snippetCache.retrieveDocument(urlentry.url(), true);+ plasmaParserDocument document = null;+ if(urlentry != null){+ document = switchboard.snippetCache.retrieveDocument(urlentry.url(), true);+ }if (urlentry != null) {prop.put("mode_edit", 0); // create modeprop.put("mode_title", urlentry.descr());