diff --git a/apps/routerconsole/java/src/net/i2p/router/web/WebAppStarter.java b/apps/routerconsole/java/src/net/i2p/router/web/WebAppStarter.java index e27799cfb..d0690a01b 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/WebAppStarter.java +++ b/apps/routerconsole/java/src/net/i2p/router/web/WebAppStarter.java @@ -155,6 +155,8 @@ public class WebAppStarter { return null; String path = '/'+ appName; for (int i = 0; i < handlers.length; i++) { + if (!(handlers[i] instanceof ContextHandler)) + continue; ContextHandler ch = (ContextHandler) handlers[i]; if (path.equals(ch.getContextPath())) return ch;