Author: toad
Date: 2007-11-30 15:10:06 +0000 (Fri, 30 Nov 2007)
New Revision: 16133

Modified:
   trunk/freenet/src/freenet/node/fcp/ClientRequest.java
Log:
Prevent NumberFormatException from ruining things, and save a few lines

Modified: trunk/freenet/src/freenet/node/fcp/ClientRequest.java
===================================================================
--- trunk/freenet/src/freenet/node/fcp/ClientRequest.java       2007-11-30 
14:43:56 UTC (rev 16132)
+++ trunk/freenet/src/freenet/node/fcp/ClientRequest.java       2007-11-30 
15:10:06 UTC (rev 16133)
@@ -106,9 +106,7 @@
                global = Fields.stringToBool(fs.get("Global"), false);
                final String stime = fs.get("StartupTime");
                this.startupTime = stime == null ? System.currentTimeMillis() : 
Fields.parseLong(stime);
-               final String ctime = fs.get("CompletionTime");
-               if(ctime != null)
-                       completionTime = Fields.parseLong(ctime);
+               completionTime = fs.getLong("CompletionTime", 0);
        }

        /** Lost connection */


Reply via email to