diff --git a/source/de/anomic/data/bookmarksDB.java b/source/de/anomic/data/bookmarksDB.java index db251f974..8e5f42696 100644 --- a/source/de/anomic/data/bookmarksDB.java +++ b/source/de/anomic/data/bookmarksDB.java @@ -394,8 +394,8 @@ public class bookmarksDB { final Iterator it=hashes.iterator(); Bookmark bm; while(it.hasNext()){ - bm=getBookmark(it.next()); - if(bm.getPublic()){ + bm = getBookmark(it.next()); + if (bm != null && bm.getPublic()) { set.add(bm.getUrlHash()); } }