[ https://issues.apache.org/jira/browse/FILEUPLOAD-123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jochen Wiedmann resolved FILEUPLOAD-123. ---------------------------------------- Resolution: Fixed Fix Version/s: 1.2 Done. > NullPointerException in FileUploadBase.createItem(FileUploadBase.java:500) > when no factory was set in FileUpload > ---------------------------------------------------------------------------------------------------------------- > > Key: FILEUPLOAD-123 > URL: https://issues.apache.org/jira/browse/FILEUPLOAD-123 > Project: Commons FileUpload > Issue Type: Bug > Affects Versions: 1.1.1 > Reporter: David Tanzer > Priority: Minor > Fix For: 1.2 > > > The following code produces a NPE, a more descriptive exception (and > exception message) would be helpful. > ServletFileUpload upload = new ServletFileUpload(); > try { > List<FileItem> items = upload.parseRequest(request); > /* ... */ > } catch (Exception e) { > e.printStackTrace(); > } > The exception is: > java.lang.NullPointerException > at > org.apache.commons.fileupload.FileUploadBase.createItem(FileUploadBase.java:500) > at > org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:367) > at > org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:116) > ... -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]