From 5b1ea6187f20c18ca67c34f226f748ed7a5e920b Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Tue, 25 Sep 2012 19:20:15 +0000 Subject: [PATCH] * EventLog: Fix IAE on portable --- router/java/src/net/i2p/router/util/EventLog.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/router/java/src/net/i2p/router/util/EventLog.java b/router/java/src/net/i2p/router/util/EventLog.java index 9a2d9d20e1..d3486206ba 100644 --- a/router/java/src/net/i2p/router/util/EventLog.java +++ b/router/java/src/net/i2p/router/util/EventLog.java @@ -48,12 +48,11 @@ public class EventLog { public static final String WATCHDOG = "watchdog"; /** - * @param file must be absolute - * @throws IllegalArgumentException if not absolute + * @param file should be absolute */ public EventLog(I2PAppContext ctx, File file) { - if (!file.isAbsolute()) - throw new IllegalArgumentException(); + //if (!file.isAbsolute()) + // throw new IllegalArgumentException(); _context = ctx; _file = file; _cache = new HashMap(4); @@ -128,7 +127,7 @@ public class EventLog { continue; Long ltime = Long.valueOf(time); String info = s.length > 2 ? s[2] : ""; - rv.put(time, info); + rv.put(ltime, info); } catch (IndexOutOfBoundsException ioobe) { } catch (NumberFormatException nfe) { } -- GitLab