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

FileUpload default constructor does not create a factory

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0 Final
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Bugzilla Id:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: