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
pull/1/head
allo 19 years ago
parent d8fde14c3a
commit 4922ab8920

@ -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());

Loading…
Cancel
Save