From 8187147e74c2d26c40648d6161b7530136fbcf6f Mon Sep 17 00:00:00 2001 From: Andy Janata Date: Wed, 18 Jan 2012 16:39:11 -0800 Subject: [PATCH] catch assertion errors in CahServlet --- src/net/socialgamer/cah/CahServlet.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/net/socialgamer/cah/CahServlet.java b/src/net/socialgamer/cah/CahServlet.java index 1788104..ac16ddf 100644 --- a/src/net/socialgamer/cah/CahServlet.java +++ b/src/net/socialgamer/cah/CahServlet.java @@ -65,7 +65,12 @@ public abstract class CahServlet extends HttpServlet { hSession.invalidate(); returnError(response.getWriter(), ErrorCode.SESSION_EXPIRED); } else { - handleRequest(request, response, hSession); + try { + handleRequest(request, response, hSession); + } catch (final AssertionError ae) { + getServletContext().log(ae.toString()); + ae.printStackTrace(); + } } }