Commits

Anonymous committed e054a52

ActionContext initializes a new ActionContext and sets it in the ThreadLocal if the ThreadLocal is null.

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@139e221344d-f017-0410-9bd5-d282ab1896d7

Comments (0)

Files changed (1)

src/java/com/opensymphony/xwork/ActionContext.java

      */
     public static ActionContext getContext() {
         ActionContext context = (ActionContext) actionContext.get();
-
+        if (context == null) {
+            OgnlValueStack vs = new OgnlValueStack();
+            context = new ActionContext(vs.getContext());
+            setContext(context);
+        }
         return context;
     }