Commits

mbogaert  committed ba1b133

Fixed XW-225 (whitespace).

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

  • Participants
  • Parent commits fd8a0d3

Comments (0)

Files changed (1)

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

 
                         try {
                             String paramName = (String) resultClass.getField("DEFAULT_PARAM").get(null);
-                            params.put(paramName, resultElement.getChildNodes().item(0).getNodeValue());
+                            String paramValue = resultElement.getChildNodes().item(0).getNodeValue();
+                            if (paramValue != null) paramValue = paramValue.trim();
+                            params.put(paramName, paramValue);
                         } catch (Throwable t) {
                         }
                     }