From 4922ab89209602d567b1de2626ad021f2259a59b Mon Sep 17 00:00:00 2001 From: allo Date: Fri, 22 Sep 2006 22:51:44 +0000 Subject: [PATCH] try to fix a nullpointer on snippet generation git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2653 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/Bookmarks.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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());