Fix of NPE when non chunked large variable is created
This commit is contained in:
parent
dbb2392034
commit
6b3b3b7426
@ -73,8 +73,10 @@ public class MixedAttribute implements Attribute {
|
||||
if (attribute.length() + buffer.readableBytes() > limitSize) {
|
||||
DiskAttribute diskAttribute = new DiskAttribute(attribute
|
||||
.getName());
|
||||
diskAttribute.addContent(((MemoryAttribute) attribute)
|
||||
if (((MemoryAttribute) attribute).getChannelBuffer() != null) {
|
||||
diskAttribute.addContent(((MemoryAttribute) attribute)
|
||||
.getChannelBuffer(), last);
|
||||
}
|
||||
attribute = diskAttribute;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user