Uploaded image for project: 'Commons FileUpload'
  1. Commons FileUpload
  2. FILEUPLOAD-22

FileUpload default constructor does not create a factory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0 Final
    • None
    • None
    • Operating System: All
      Platform: All

    • 23822

    Description

      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?

      Attachments

        Activity

          People

            Unassigned Unassigned
            larsga@garshol.priv.no Lars Marius Garshol
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: