[jitsi-dev] [jitsi] Fix the disappearance of external contact sources (96bb374)


#1

I hit an ArrayIndexOutOfBoundsException with this fix.

Say groupNode has N children and binarySearch returns N. Then the else branch increments insertionPoint to (N+1). Now insert() hits an ArrayIndexOutOfBoundsException. I think you must use add() instead of insert() for the case where you insert after the last entry.

···

---
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/jitsi/commit/96bb3746a3ad194ec76b43b63aecf9aaba6968d2#commitcomment-15100116