wbstr / vaadin-multifileupload

12 stars 23 forks source link

IndexOutOfBounds on file without extension #12

Closed acsadam0404 closed 10 years ago

acsadam0404 commented 10 years ago

If you upload a file without an extension (on unix systems files don't need to get an extension) you get an IndexOutOfBoundsException.

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at java.util.ArrayList.rangeCheck(ArrayList.java:635)
    at java.util.ArrayList.remove(ArrayList.java:474)
    at com.wcs.wcslib.vaadin.widget.multifileupload.component.MultiUpload$1.streamingFailed(MultiUpload.java:129)
    at com.vaadin.server.communication.FileUploadHandler.streamToReceiver(FileUploadHandler.java:591)
    at com.vaadin.server.communication.FileUploadHandler.handleFileUploadValidationAndData(FileUploadHandler.java:432)
    at com.vaadin.server.communication.FileUploadHandler.doHandleXhrFilePost(FileUploadHandler.java:486)
    at com.vaadin.server.communication.FileUploadHandler.handleRequest(FileUploadHandler.java:286)```
juger89 commented 10 years ago

Fixed in 1.6.1