powered by Jive Software

java.lang.IllegalStateException: HistoryStrategy#addMessage(Message packet)

wildfire 2.6.2, in class org.jivesoftware.wildfire.muc.HistoryStrategy, line 173 through 178:

Iterator historyIter = history.iterator();

while (historyIter.hasNext() && history.size() > strategyMaxNumber) {

if (historyIter.next() != roomSubject) {

historyIter.remove();

}

}

should be:

while (history.size() > strategyMaxNumber) {

if (history.peek() != roomSubject) {

history.remove();

}

}