Author: toad
Date: 2008-01-26 18:43:34 +0000 (Sat, 26 Jan 2008)
New Revision: 17309
Modified:
trunk/freenet/src/freenet/clients/http/bookmark/BookmarkItem.java
Log:
Prevent NPE
Modified: trunk/freenet/src/freenet/clients/http/bookmark/BookmarkItem.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/bookmark/BookmarkItem.java
2008-01-26 18:21:36 UTC (rev 17308)
+++ trunk/freenet/src/freenet/clients/http/bookmark/BookmarkItem.java
2008-01-26 18:43:34 UTC (rev 17309)
@@ -50,7 +50,9 @@
public BookmarkItem(SimpleFieldSet sfs, UserAlertManager uam) throws
FSParseException, MalformedURLException {
this.name = sfs.get("Name");
+ if(name == null) name = "";
this.desc = sfs.get("Description");
+ if(desc == null) desc = "";
this.hasAnActivelink = sfs.getBoolean("hasAnActivelink");
this.key = new FreenetURI(sfs.get("URI"));
this.alerts = uam;