From 6569cbbec1add9b128afb40c5ad0272e21da2698 Mon Sep 17 00:00:00 2001 From: lotus Date: Tue, 16 Dec 2008 20:53:31 +0000 Subject: [PATCH] npe fix: http://forum.yacy-websuche.de/viewtopic.php?t=1646 (break to avoid bad side effects) git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5394 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/Bookmarks.java | 1 + 1 file changed, 1 insertion(+) diff --git a/htroot/Bookmarks.java b/htroot/Bookmarks.java index 445655d4d..2d63739c8 100644 --- a/htroot/Bookmarks.java +++ b/htroot/Bookmarks.java @@ -400,6 +400,7 @@ public class Bookmarks { final Iterator bit=sb.bookmarksDB.getBookmarksIterator(fn, isAdmin); while(bit.hasNext()){ bookmark=sb.bookmarksDB.getBookmark(bit.next()); + if(bookmark == null) break; prop.put("folderlist_"+count+"_folder", "
  • "+ bookmark.getTitle()+"
  • "); count++; }