[jboss-cvs] jboss-seam/src/main/org/jboss/seam ...
Gavin King
gavin.king at jboss.com
Tue Jun 19 21:06:33 EDT 2007
User: gavin
Date: 07/06/19 21:06:33
Modified: src/main/org/jboss/seam Component.java
Log:
minor
Revision Changes Path
1.259 +7 -4 jboss-seam/src/main/org/jboss/seam/Component.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Component.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/Component.java,v
retrieving revision 1.258
retrieving revision 1.259
diff -u -b -r1.258 -r1.259
--- Component.java 19 Jun 2007 20:26:42 -0000 1.258
+++ Component.java 20 Jun 2007 01:06:33 -0000 1.259
@@ -1349,6 +1349,8 @@
private void injectParameters(Object bean)
{
Parameters params = Parameters.instance();
+ if (params!=null) //check for unit tests
+ {
Map<String, String[]> requestParameters = params.getRequestParameters();
for (BijectedAttribute setter: parameterSetters)
{
@@ -1356,6 +1358,7 @@
setter.set(bean, convertedValue);
}
}
+ }
/**
* Outject context variable values from @Out attributes
More information about the jboss-cvs-commits
mailing list