From 924963eba02b8adebfd69300fa0746888ddac138 Mon Sep 17 00:00:00 2001 From: zzz Date: Thu, 22 Nov 2012 23:14:08 +0000 Subject: [PATCH] fix class cast exception --- .../java/src/net/i2p/router/web/WebAppStarter.java | 2 ++ 1 file changed, 2 insertions(+) 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;