Skip to content

Commit

Permalink
null pointer issue fix
Browse files Browse the repository at this point in the history
Signed-off-by: Santhosh Gandhe <[email protected]>
  • Loading branch information
san81 committed Nov 17, 2024
1 parent 1ff5e44 commit 4fbbc4e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import io.micrometer.core.instrument.DistributionSummary;
import io.micrometer.core.instrument.Timer;
import java.time.Duration;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.concurrent.TimeUnit;
Expand Down Expand Up @@ -152,7 +153,7 @@ public void doOutput(final Collection<Record<Event>> records) {
numberOfRecordsSuccessCounter.increment(inputBuffer.getEventCount());
numberOfRequestsSuccessCounter.increment();
releaseEventHandlesPerBatch(true, inputBuffer);
return null;
return new ArrayList<>();
},
(inputBuffer, invokeResponse) -> {
Duration latency = inputBuffer.stopLatencyWatch();
Expand Down

0 comments on commit 4fbbc4e

Please sign in to comment.