Changeset 10894 in josm for trunk/src/org


Ignore:
Timestamp:
2016-08-24T23:23:20+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #13406 - UnsupportedOperationException at gpx color change (patch by michael2402) - gsoc-core

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/ListenerList.java

    r10824 r10894  
    150150            WeakListener<T> weakLink = iterator.next();
    151151            T l = weakLink.listener.get();
    152             if (l == null) {
    153                 iterator.remove();
    154             } else {
     152            if (l != null) {
     153                // cleanup during add() should be enough to not cause memory leaks
     154                // therefore, we ignore null listeners.
    155155                eventFirerer.fire(l);
    156156            }
Note: See TracChangeset for help on using the changeset viewer.