Skip to content

Commit

Permalink
[proxima-direct-core] fix corner-case exception
Browse files Browse the repository at this point in the history
  • Loading branch information
je-ik committed Sep 19, 2023
1 parent 724ad64 commit 661627c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ synchronized boolean put(
}
}
long first;
while ((first = valueMap.firstKey()) + keepDuration < stamp) {
while (!valueMap.isEmpty() && (first = valueMap.firstKey()) + keepDuration < stamp) {
valueMap.remove(first);
}
return attrMap;
Expand Down

0 comments on commit 661627c

Please sign in to comment.