Fix a ConcurrentModificationException on Vector.
authorFrancois Chouinard <fchouinard@gmail.com>
Mon, 14 Mar 2011 19:42:26 +0000 (15:42 -0400)
committerFrancois Chouinard <fchouinard@gmail.com>
Mon, 14 Mar 2011 19:42:26 +0000 (15:42 -0400)
org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/lttng/ui/model/trange/TimeRangeComposite.java

index cb434973dfae3816f822dd7229e74d3be6a9afe7..66dbd87915cd81b03b594f7c77321b87a62303be 100644 (file)
@@ -166,13 +166,14 @@ ITmfTimeAnalysisEntry {
        @Override
        @SuppressWarnings("unchecked")
        public Iterator<TimeRangeComponent> getTraceEventsIterator() {
-               return ChildEventLeafs.iterator();
+               Vector<TimeRangeComponent> clone = (Vector<TimeRangeComponent>) ChildEventLeafs.clone();
+               return clone.iterator();
        }
 
        @Override
        @SuppressWarnings("unchecked")
        public Iterator<TimeRangeComponent> getTraceEventsIterator(long startTime, long stopTime, long visibleDuration) {
-               return ChildEventLeafs.iterator();
+               return getTraceEventsIterator();
        }
 
        @Override
This page took 0.02632 seconds and 5 git commands to generate.