Commits

rainerh  committed 035daa5

WW 2.2 logs exception if result of an action is null
Issue number: WW-1186
Obtained from:
Submitted by:
Reviewed by:

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

  • Participants
  • Parent commits cb35e39

Comments (0)

Files changed (1)

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

     }
 
     public Result createResult() throws Exception {
+
         ActionConfig config = proxy.getConfig();
         Map results = config.getResults();
 
-        ResultConfig resultConfig;
+        ResultConfig resultConfig = null;
         synchronized (config) {
-            resultConfig = (ResultConfig) results.get(resultCode);
+            try {
+                resultConfig = (ResultConfig) results.get(resultCode);
+            } catch (NullPointerException e) {
+                return null;
+            }
         }
 
         if (resultConfig != null) {