netty5/buffer
Nick Hill c3db0391af
Correctly handle WrappedCompositeByteBufs in addFlattenedComponents() (#10247)
Motivation

An NPE was reported in #10245, caused by a regression introduced in
#8939. This in particular affects ByteToMessageDecoders that use the
COMPOSITE_CUMULATOR.

Modification

- Unwrap WrappedCompositeByteBufs passed to
CompositeByteBuf#addFlattenedComponents(...) method before accessing
internal components field
- Extend unit test to cover this case and ensure more of the
CompositeByteBuf tests are also run on the wrapped variant

Results

Fixes #10245
2020-05-05 13:56:40 +02:00
..
src Correctly handle WrappedCompositeByteBufs in addFlattenedComponents() (#10247) 2020-05-05 13:56:40 +02:00
pom.xml [maven-release-plugin] prepare for next development iteration 2020-04-22 09:57:54 +00:00