From 4450c240b707e103ff64c6689809517057df26cc Mon Sep 17 00:00:00 2001 From: lotus Date: Wed, 22 Sep 2010 20:24:07 +0000 Subject: [PATCH] npe fix http://forum.yacy-websuche.de/viewtopic.php?f=6&t=2982 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7181 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/server/serverAccessTracker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/de/anomic/server/serverAccessTracker.java b/source/de/anomic/server/serverAccessTracker.java index c0d3eb0be..b65b674b2 100644 --- a/source/de/anomic/server/serverAccessTracker.java +++ b/source/de/anomic/server/serverAccessTracker.java @@ -104,7 +104,7 @@ public class serverAccessTracker { Collection timeList = accessTrack(host); long time = System.currentTimeMillis() - delta; int c = 0; - for (Track l: timeList) if (l.getTime() > time) c++; + for (Track l: timeList) if ( l != null && l.getTime() > time) c++; return c; }