Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) avoid NullpointerExceptions if Seed is null

thelidf15f71a5cf2
diff --git a/htroot/News.java b/htroot/News.java
index f19daaa87..a4565f33d 100644
--- a/htroot/News.java
+++ b/htroot/News.java
@@ -184,11 +184,11 @@ public class News {
title = record.attribute("title", "");
description = record.attribute("url", "");
} else if (category.equals(yacyNewsPool.CATEGORY_WIKI_UPDATE)) {
- link = "http://" + seed.getAddress() + "/Wiki.html?page=" + record.attribute("page", "");
+ link = (seed==null)?"":"http://" + seed.getAddress() + "/Wiki.html?page=" + record.attribute("page", "");
title = record.attribute("author", "Anonymous") + ": " + record.attribute("page", "");
description = "Wiki Update: " + record.attribute("description", "");
} else if (category.equals(yacyNewsPool.CATEGORY_BLOG_ADD)) {
- link = "http://" + seed.getAddress() + "/Blog.html?page=" + record.attribute("page", "");
+ link = (seed==null)?"":"http://" + seed.getAddress() + "/Blog.html?page=" + record.attribute("page", "");
title = record.attribute("author", "Anonymous") + ": " + record.attribute("page", "");
description = "Blog Entry: " + record.attribute("subject", "");
} else {