fix class cast exception

This commit is contained in:
zzz
2012-11-22 23:14:08 +00:00
parent de175b80fe
commit 924963eba0

View File

@ -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;