You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/04/01 22:24:07 UTC
DO NOT REPLY [Bug 28141] New: -
NPE with default FileUpload constructor
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28141>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=28141
NPE with default FileUpload constructor
Summary: NPE with default FileUpload constructor
Product: Commons
Version: 1.0 Final
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: File Upload
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: garymcg@att.net
In version 1.23 a Null Pointer Exception is being thrown when the FileUploadBase
createItem method is used if the default constructor was used to instatiate
FileUpload. The FileUpload default constructor does not create the
fileItemFactory. I found adding the line:
this.fileItemFactory = new DefaultFileItemFactory();
to the default constructor for FileUpload fixed the problem.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org