netty5/buffer/src
Norman Maurer 1eabb752c0 Fix NPE that was encounter by debugger (will never happen in real code). (#8992)
Motivation:

We synchronize on the chunk.arena when produce the String returned by PoolSubpage.toString() which may raise a NPE when chunk == null. Chunk == null for the head of the linked-list and so a NPE may raised by a debugger. This NPE can never happen in real code tho as we never access toString() of the head.

Modifications:

Add null checks and so fix the possible NPE

Result:

No NPE when using a debugger and inspect the PooledByteBufAllocator.
2019-04-01 19:44:45 +02:00
..
main/java/io/netty/buffer Fix NPE that was encounter by debugger (will never happen in real code). (#8992) 2019-04-01 19:44:45 +02:00
test/java/io/netty/buffer Change default of io.netty.allocator.useCacheForAllThreads to false (#8991) 2019-04-01 19:43:19 +02:00