Commits

the_mindstorm  committed dbe443a

if no params for ResultTypeConfig leave it null

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

  • Participants
  • Parent commits ce3d8f0

Comments (0)

Files changed (1)

File src/java/com/opensymphony/xwork/config/providers/XmlConfigurationProvider.java

             ResultTypeConfig resultType = new ResultTypeConfig(name, clazz);
             Map params = XmlHelper.getParams(resultTypeElement);
 
-            resultType.setParams(params);
+            if (!params.isEmpty()) {
+                resultType.setParams(params);
+            }
             packageContext.addResultTypeConfig(resultType);
 
             // set the default result type