diff --git a/activemq-core/src/main/java/org/apache/activemq/kaha/impl/index/DiskIndexLinkedList.java b/activemq-core/src/main/java/org/apache/activemq/kaha/impl/index/DiskIndexLinkedList.java index b6b601df2c..6f37963b4b 100755 --- a/activemq-core/src/main/java/org/apache/activemq/kaha/impl/index/DiskIndexLinkedList.java +++ b/activemq-core/src/main/java/org/apache/activemq/kaha/impl/index/DiskIndexLinkedList.java @@ -271,7 +271,7 @@ public class DiskIndexLinkedList implements IndexLinkedList { } // essential last get's updated consistently if (result != null && last != null && last.equals(result)) { - result = last; + last=result; } return result; }