From 1efe686e3f42549a2383c57e14da03956e31354b Mon Sep 17 00:00:00 2001 From: orbiter Date: Fri, 15 May 2009 22:51:15 +0000 Subject: [PATCH] fix for http://forum.yacy-websuche.de/viewtopic.php?p=13960#p13960 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5954 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/LogStatistics_p.java | 2 +- source/de/anomic/yacy/logging/LogalizerHandler.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htroot/LogStatistics_p.java b/htroot/LogStatistics_p.java index ad98acdb7..190d5f8df 100644 --- a/htroot/LogStatistics_p.java +++ b/htroot/LogStatistics_p.java @@ -57,7 +57,7 @@ public class LogStatistics_p { displaySubmenu = true; final LogalizerHandler h = ((LogalizerHandler)handlers[i]); r = h.getParserResults(h.getParser(0)); - break; + if (r != null) break; } } diff --git a/source/de/anomic/yacy/logging/LogalizerHandler.java b/source/de/anomic/yacy/logging/LogalizerHandler.java index 4c4b78eb1..94af12d8e 100644 --- a/source/de/anomic/yacy/logging/LogalizerHandler.java +++ b/source/de/anomic/yacy/logging/LogalizerHandler.java @@ -151,7 +151,7 @@ public class LogalizerHandler extends Handler { } public Hashtable getParserResults(final LogParser parsername) { - return parsername.getResults(); + return (parsername == null) ? null : parsername.getResults(); } public void close() throws SecurityException {