From 6b12ae32ea7b4e471229762fb58839719ea28894 Mon Sep 17 00:00:00 2001 From: hns Date: Wed, 3 Dec 2008 14:06:19 +0000 Subject: [PATCH] Make RequestEvaluator survive broken/missing rhino.jar. --- src/helma/framework/core/RequestEvaluator.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/helma/framework/core/RequestEvaluator.java b/src/helma/framework/core/RequestEvaluator.java index e14df4f3..bddf5c6f 100644 --- a/src/helma/framework/core/RequestEvaluator.java +++ b/src/helma/framework/core/RequestEvaluator.java @@ -630,7 +630,11 @@ public final class RequestEvaluator implements Runnable { app.setCurrentRequestEvaluator(null); // exit execution context if (scriptingEngine != null) { - scriptingEngine.exitContext(); + try { + scriptingEngine.exitContext(); + } catch (Throwable t) { + // broken rhino, just get out of here + } } } }