Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

try to fix a nullpointer on snippet generation

allo4922ab892096
diff --git a/htroot/Bookmarks.java b/htroot/Bookmarks.java
index 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 database
plasmaCrawlLURL.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 mode
prop.put("mode_title", urlentry.descr());