
|
If you were logged in you would be able to see more operations.
|
|
|
|
Environment:
|
OS:WINDOWS 2000 JDK:JDK1.5 WEB SERVER:TOMCAT 5.5.4
|
|
|
I use FileUploadInterceptor to upload files,and I set the webwork.multipart.maxSize=12345.When I upload a file whose size is lager than 12345,it will throw NPE.I view the exception stack trace,and found it was thrown at
// Bind allowed Files
while (e.hasMoreElements())
When I change it as
// Bind allowed Files
while (e!= null && e.hasMoreElements()) {
.....
// cleanup
e = multiWrapper.getFileParameterNames();
while (e!= null && e.hasMoreElements()) {
everything is oK.
Is this a bug?
Thanks.
|
|
Description
|
I use FileUploadInterceptor to upload files,and I set the webwork.multipart.maxSize=12345.When I upload a file whose size is lager than 12345,it will throw NPE.I view the exception stack trace,and found it was thrown at
// Bind allowed Files
while (e.hasMoreElements())
When I change it as
// Bind allowed Files
while (e!= null && e.hasMoreElements()) {
.....
// cleanup
e = multiWrapper.getFileParameterNames();
while (e!= null && e.hasMoreElements()) {
everything is oK.
Is this a bug?
Thanks.
|
Show » |
|