e21591fa25
Motivation: 232c669fa413a9079ee6216056b57a647143f4b6 did add some overflow protection but did not handle null elements in the array the same as before. Modifications: - Break the loop if a null element was found - Add unit test Result: Fixes https://github.com/netty/netty/issues/11612