Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) bugfix in bookmarksDB: - NullpointerException when trying to get an unknown bookmark - bookmarks can either start with http or https
thelibd03c6b874d7
diff --git a/source/de/anomic/data/bookmarksDB.java b/source/de/anomic/data/bookmarksDB.javaindex 83aa00f54..d092878f7 100644--- a/source/de/anomic/data/bookmarksDB.java+++ b/source/de/anomic/data/bookmarksDB.java@@ -322,6 +322,7 @@ public class bookmarksDB {public Bookmark getBookmark(String urlHash){try {kelondroObjectsMapEntry map = (kelondroObjectsMapEntry)bookmarksTable.get(urlHash);+ if (map == null) return null;if (map instanceof Bookmark) return (Bookmark)map;return new Bookmark(map);} catch (IOException e) {@@ -733,7 +734,7 @@ public class bookmarksDB {}public Bookmark(String url){super();- if(!url.toLowerCase().startsWith("http://")){+ if(!url.toLowerCase().startsWith("http://") && !url.toLowerCase().startsWith("https://")){url="http://"+url;}this.urlHash=plasmaURL.urlHash(url);