NPE in CommonsMultipartWrapper
-------------------------------
Key: STS-508
URL: http://www.stripesframework.org/jira/browse/STS-508
Project: Stripes
Issue Type: Bug
Components: Validation
Affects Versions: Release 1.5
Environment: sun jdk 1.6.0_03, Jetty 6.1.7, ubuntu 7.10
Reporter: William DeMoss
If an action bean contains validation against a property that is not a FileBean
and a property that is a FileBean, then when
CommonsMultipartWrapper.getFileParameterValue is called a NPE will be occur for
the property that is not a FileBean because item is null for item.getName() on
line 158.
157: final FileItem item = this.files.get(name);
158: String filename = item.getName();
159: if (item == null || ((filename == null || filename.length() == 0)
&& item.getSize() == 0)) {
160: return null;
161: }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development