Skip to content

Commit

Permalink
add null check
Browse files Browse the repository at this point in the history
Signed-off-by: Yury-Fridlyand <[email protected]>
  • Loading branch information
Yury-Fridlyand committed Nov 20, 2023
1 parent e11a0ee commit 29ba2a3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ public static void testClientSetGet(
var actions = getActionMap(clients.get(clientIndex), dataSize, async);
// operate and calculate tik-tok
Pair<ChosenAction, Long> result = measurePerformance(actions);
taskActionResults.get(result.getLeft()).add(result.getRight());
if (result != null) {
taskActionResults.get(result.getLeft()).add(result.getRight());
}

iterationIncrement = iterationCounter.getAndIncrement();
clientIndex = iterationIncrement % clients.size();
Expand Down

0 comments on commit 29ba2a3

Please sign in to comment.