[
https://issues.apache.org/jira/browse/FILEUPLOAD-256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bruno P. Kinoshita resolved FILEUPLOAD-256.
-------------------------------------------
Resolution: Cannot Reproduce
Closing as Cannot Reproduce. Reported some years ago, PR got closed (likely)
because the component was migrated to git. But see comments of others
confirming it's hard to find a way to reproduce the issue, of having a `null`
ServletContext.
Feel free to re-open it in case there's further information on how to reproduce
it.
> FileCleanerCleanup throws NPE on shut-down
> ------------------------------------------
>
> Key: FILEUPLOAD-256
> URL: https://issues.apache.org/jira/browse/FILEUPLOAD-256
> Project: Commons FileUpload
> Issue Type: Bug
> Affects Versions: 1.3
> Reporter: Til Schneider
> Priority: Minor
>
> FileCleanerCleanup throws NPE on shut-down if there was no file uploaded.
> Here's the stack trace:
> {code}
> java.lang.NullPointerException
> at
> org.apache.commons.fileupload.servlet.FileCleanerCleanup.contextDestroyed(FileCleanerCleanup.java:87)
> at
> org.mortbay.jetty.handler.ContextHandler.doStop(ContextHandler.java:600)
> ...
> {code}
> A simple check, whether there is a FileCleaningTracker for that
> ServletContext should fix this.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)