commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28141] New: - NPE with default FileUpload constructor
Date Thu, 01 Apr 2004 20:24:07 GMT
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


Mime
View raw message