From 8225ce063ae1eaa6b46cfb86f6d1dd377f4cf129 Mon Sep 17 00:00:00 2001
From: zzz <zzz@mail.i2p>
Date: Wed, 5 May 2010 17:50:28 +0000
Subject: [PATCH]     * Console: Print stack trace if exception on startup

---
 .../java/src/net/i2p/router/web/RouterConsoleRunner.java       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/apps/routerconsole/java/src/net/i2p/router/web/RouterConsoleRunner.java b/apps/routerconsole/java/src/net/i2p/router/web/RouterConsoleRunner.java
index 460db8d176..58a6d5c964 100644
--- a/apps/routerconsole/java/src/net/i2p/router/web/RouterConsoleRunner.java
+++ b/apps/routerconsole/java/src/net/i2p/router/web/RouterConsoleRunner.java
@@ -75,7 +75,7 @@ public class RouterConsoleRunner {
         _server = new Server();
         boolean rewrite = false;
         Properties props = webAppProperties();
-        if (props.size() <= 0) {
+        if (props.isEmpty()) {
             props.setProperty(PREFIX + ROUTERCONSOLE + ENABLED, "true");
             rewrite = true;
         }
@@ -161,6 +161,7 @@ public class RouterConsoleRunner {
                                "If so, you may ignore this error, or remove the\n" +
                                "\"::1,\" in the \"clientApp.0.args\" line of the clients.config file.\n" +
                                "Exception: " + me);
+            me.printStackTrace();
         }
 
         if (baseHandler != null) {
-- 
GitLab