Fix for bug 382245: TmfLocationArray incorrectly cloned.
authorPatrick Tasse <patrick.tasse@gmail.com>
Mon, 11 Jun 2012 14:43:24 +0000 (10:43 -0400)
committerPatrick Tasse <patrick.tasse@gmail.com>
Mon, 11 Jun 2012 14:43:24 +0000 (10:43 -0400)
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/trace/TmfLocationArray.java

index 3b40a68698f28070a4690a7af9bca3650ebeb83f..06a324528abf723604a632fe8a92eefb7e030889 100644 (file)
@@ -70,7 +70,7 @@ public class TmfLocationArray implements Comparable<TmfLocationArray>, Cloneable
         ITmfLocation<? extends Comparable<?>>[] clones = (ITmfLocation<? extends Comparable<?>>[]) new ITmfLocation<?>[fLocations.length];
         for (int i = 0; i < fLocations.length; i++) {
             ITmfLocation<?> location = fLocations[i];
-            clones[i] = (location != null) ? location : null;
+            clones[i] = (location != null) ? location.clone() : null;
         }
         return new TmfLocationArray(clones);
     }
This page took 0.025391 seconds and 5 git commands to generate.