Committed by
Gerrit Code Review
Ensure UpdateEntry comprison works well with ECMaps that have tombstones disabled
Change-Id: Iff3f09a8342a7d9e89a31fb2be86ca1bfa4d75ff
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -61,7 +61,7 @@ final class UpdateEntry<K, V> { | ... | @@ -61,7 +61,7 @@ final class UpdateEntry<K, V> { |
| 61 | * @return true if this entry is newer; false otherwise | 61 | * @return true if this entry is newer; false otherwise |
| 62 | */ | 62 | */ |
| 63 | public boolean isNewerThan(UpdateEntry<K, V> other) { | 63 | public boolean isNewerThan(UpdateEntry<K, V> other) { |
| 64 | - return other == null || value.isNewerThan(other.value); | 64 | + return other == null || other.value == null || (value != null && value.isNewerThan(other.value)); |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | @Override | 67 | @Override | ... | ... |
-
Please register or login to post a comment