commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (FILEUPLOAD-256) FileCleanerCleanup throws NPE on shut-down
Date Fri, 17 Oct 2014 01:18:34 GMT


ASF GitHub Bot commented on FILEUPLOAD-256:

GitHub user jamessawle opened a pull request:

    FILEUPLOAD-256 Added null pointer handling

    Added null pointer handling to stop NPEs being thrown.

You can merge this pull request into a Git repository by running:

    $ git pull FILEUPLOAD-256

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #4
commit b9cda9e63f36fa91648deebf881f999b484dac80
Author: James Sawle <>
Date:   2014-10-17T01:16:43Z

    FILEUPLOAD-256 Added null pointer handling around the FileCleaningTracker termination
to ensure NullPointerExceptions are no longer thrown.


> FileCleanerCleanup throws NPE on shut-down
> ------------------------------------------
>                 Key: FILEUPLOAD-256
>                 URL:
>             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(
> 	at org.mortbay.jetty.handler.ContextHandler.doStop(
> 	...
> {code}
> A simple check, whether there is a FileCleaningTracker for that ServletContext should
fix this.

This message was sent by Atlassian JIRA

View raw message