Fix NPE when non chunked message with a large variable
This commit is contained in:
parent
6b3b3b7426
commit
d6ea072ccc
@ -62,8 +62,10 @@ public class MixedFileUpload implements FileUpload {
|
||||
.getContentType(), fileUpload
|
||||
.getContentTransferEncoding(), fileUpload.getCharset(),
|
||||
definedSize);
|
||||
diskFileUpload.addContent(((MemoryFileUpload) fileUpload)
|
||||
if (((MemoryFileUpload) fileUpload).getChannelBuffer() != null){
|
||||
diskFileUpload.addContent(((MemoryFileUpload) fileUpload)
|
||||
.getChannelBuffer(), last);
|
||||
}
|
||||
fileUpload = diskFileUpload;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user