DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23822>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23822

FileUpload default constructor does not create a factory

           Summary: FileUpload default constructor does not create a factory
           Product: Commons
           Version: 1.0 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: File Upload
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The default constructor of the FileUpload class (no parameters) is said by the 
documentation to use "the default factory", but the code doesn't actually create 
any factory at all (fileItemFactory attribute is null), so any attempt to use 
the class causes a NullPointerException. Either the documentation or the code 
should be fixed. Personally, I think the code should be fixed. Why make the 
class harder to use than necessary?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to