diff --git a/source/de/anomic/server/serverAccessTracker.java b/source/de/anomic/server/serverAccessTracker.java index 153d61dd3..c395f7599 100644 --- a/source/de/anomic/server/serverAccessTracker.java +++ b/source/de/anomic/server/serverAccessTracker.java @@ -78,7 +78,12 @@ public class serverAccessTracker { } private SortedMap clearTooOldAccess(final SortedMap access) { - return access.tailMap(Long.valueOf(System.currentTimeMillis() - maxTrackingTime)); + try { + return access.tailMap(Long.valueOf(System.currentTimeMillis() - maxTrackingTime)); + } catch (IllegalArgumentException e) { + e.printStackTrace(); + return new TreeMap(); + } } public void track(final String host, String accessPath) {