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

FileCleanerCleanup throws NPE on shut-down

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • 1.3
    • None
    • None

    Description

      FileCleanerCleanup throws NPE on shut-down if there was no file uploaded.

      Here's the stack trace:

      java.lang.NullPointerException
      	at org.apache.commons.fileupload.servlet.FileCleanerCleanup.contextDestroyed(FileCleanerCleanup.java:87)
      	at org.mortbay.jetty.handler.ContextHandler.doStop(ContextHandler.java:600)
      	...
      

      A simple check, whether there is a FileCleaningTracker for that ServletContext should fix this.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              til Til Schneider
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: