daim
  1. daim
  2. DAIM-1

ConcurrentModificationException when adding buddy

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: Linux
      Platform: PC

    • Issuezilla Id:
      1

      Description

      java.util.ConcurrentModificationException
      at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:448)
      at java.util.AbstractList$Itr.next(AbstractList.java:419)
      at org.walluck.oscar.handlers.SSIHandler.parseAck(SSIHandler.java:2092)
      at org.walluck.oscar.handlers.SSIHandler.handleSNAC(SSIHandler.java:2512)
      at
      org.walluck.oscar.ReceiveQueueThread.handleIncomingFrame(ReceiveQueueThread.java:124)

        Activity

        Hide
        rexorient added a comment -

        David says: Easiest fix for your bug is to turn that ArrayList into a Vector...

        (Alain: if it's that easy, I'd suggest wrapping it in a
        Collections.synchronizedList() instead – that way the Collections API remains
        available.)

        Show
        rexorient added a comment - David says: Easiest fix for your bug is to turn that ArrayList into a Vector... (Alain: if it's that easy, I'd suggest wrapping it in a Collections.synchronizedList() instead – that way the Collections API remains available.)
        Hide
        rexorient added a comment -

        Replaced by code which doesn't depend on iterator for modifications.

        Show
        rexorient added a comment - Replaced by code which doesn't depend on iterator for modifications.

          People

          • Assignee:
            daim-issues
            Reporter:
            rexorient
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: