spotify / ffwd

a flexible metric forwarding agent
https://spotify.github.io/ffwd/
Apache License 2.0
79 stars 33 forks source link

[CoreOutputManager] Check if points are null before getting key #248

Closed lmuhlha closed 3 years ago

lmuhlha commented 3 years ago

Remediates java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0 at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248) at java.base/java.util.Objects.checkIndex(Objects.java:372) at java.base/java.util.ArrayList.get(ArrayList.java:459) at com.spotify.ffwd.output.CoreOutputManager.sendBatch(CoreOutputManager.java:277) at com.spotify.ffwd.input.CoreInputManager.receiveBatch(CoreInputManager.java:89) at com.spotify.ffwd.input.InputChannelInboundHandler.channelRead(InputChannelInboundHandler.java:48)