Skip to content

Commit

Permalink
Merge pull request #836: [proxima-direct-core] fix corner-case exception
Browse files Browse the repository at this point in the history
  • Loading branch information
je-ik authored Sep 19, 2023
2 parents 724ad64 + 661627c commit d5bbbce
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 d5bbbce

Please sign in to comment.