Commits

Anonymous committed f5e50b9

XW-614
NullPointerException while trying to call setActionInvocation in DefaultActionInvocation.init
o applied suggested patch

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

  • Participants
  • Parent commits 3fd6c0e

Comments (0)

Files changed (1)

File src/java/com/opensymphony/xwork2/DefaultActionInvocation.java

 
         // Setting this so that other classes, like object factories, can use the ActionProxy and other
         // contextual information to operate
-        ActionContext.getContext().setActionInvocation(this);
+        ActionContext actionContext = ActionContext.getContext();
+
+        if(actionContext != null) {
+            actionContext.setActionInvocation(this);
+        }
         
         createAction(contextMap);