From 4fe1329de206f0b532b464a157ad8b794e49fb7a Mon Sep 17 00:00:00 2001 From: low012 Date: Sat, 25 Jun 2011 10:15:42 +0000 Subject: [PATCH] *) trying to at least fix symptoms of http://forum.yacy-websuche.de/viewtopic.php?f=5&t=3293#p22791 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7799 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/CrawlProfileEditor_p.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htroot/CrawlProfileEditor_p.java b/htroot/CrawlProfileEditor_p.java index bf231d500..78aeffe71 100644 --- a/htroot/CrawlProfileEditor_p.java +++ b/htroot/CrawlProfileEditor_p.java @@ -134,9 +134,11 @@ public class CrawlProfileEditor_p { Map orderdHandles = new TreeMap(); for (final byte[] h : sb.crawler.getActive()) { selentry = sb.crawler.getActive(h); - if (ignoreNames.contains(selentry.name())) continue; - orderdHandles.put(selentry.name(), selentry.handle()); + if (selentry != null && !ignoreNames.contains(selentry.name())) { + orderdHandles.put(selentry.name(), selentry.handle()); + } } + // then write into pop-up menu list int count = 0; for (final Map.Entry NameHandle: orderdHandles.entrySet()) {