*) avoid NullpointerExceptions if Seed is null

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3508 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
theli 2007-03-21 17:21:28 +00:00
parent 75d90834a2
commit df15f71a5c

View File

@ -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 {