r7365 - dumbhippo/trunk/server/src/com/dumbhippo/web/servlets
- From: commits mugshot org
- To: online-desktop-list gnome org
- Subject: r7365 - dumbhippo/trunk/server/src/com/dumbhippo/web/servlets
- Date: Thu, 13 Mar 2008 15:02:44 -0500 (CDT)
Author: walters
Date: 2008-03-13 15:02:38 -0500 (Thu, 13 Mar 2008)
New Revision: 7365
Modified:
dumbhippo/trunk/server/src/com/dumbhippo/web/servlets/RewriteServlet.java
Log:
Don't NPE on invalid jsp page.
Modified: dumbhippo/trunk/server/src/com/dumbhippo/web/servlets/RewriteServlet.java
===================================================================
--- dumbhippo/trunk/server/src/com/dumbhippo/web/servlets/RewriteServlet.java 2008-03-13 18:51:17 UTC (rev 7364)
+++ dumbhippo/trunk/server/src/com/dumbhippo/web/servlets/RewriteServlet.java 2008-03-13 20:02:38 UTC (rev 7365)
@@ -171,7 +171,11 @@
return "/jsp-gnome/" + name + ".jsp";
} else {
Integer version = jspPages.get(name);
- String suffix = version.intValue() > 1 ? version.toString() : "";
+ String suffix;
+ if (version != null)
+ suffix = version.intValue() > 1 ? version.toString() : "";
+ else
+ suffix = "";
return "/jsp" + suffix + "/" + name + ".jsp";
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]