[kune-commits] r1467 - trunk/src/main/java/cc/kune/wave/server

Vicente J. Ruiz Jurado vjrj_ at ourproject.org
Wed Jul 27 16:27:35 CEST 2011


Author: vjrj_
Date: 2011-07-27 16:27:34 +0200 (Wed, 27 Jul 2011)
New Revision: 1467

Modified:
   trunk/src/main/java/cc/kune/wave/server/KuneWaveManagerDefault.java
Log:
Wave copy fix

Modified: trunk/src/main/java/cc/kune/wave/server/KuneWaveManagerDefault.java
===================================================================
--- trunk/src/main/java/cc/kune/wave/server/KuneWaveManagerDefault.java	2011-07-27 14:08:41 UTC (rev 1466)
+++ trunk/src/main/java/cc/kune/wave/server/KuneWaveManagerDefault.java	2011-07-27 14:27:34 UTC (rev 1467)
@@ -110,8 +110,12 @@
     // Deep copy annotations
     for (final Annotation annotation : fromBlip.getAnnotations()) {
       final Range range = annotation.getRange();
-      toBlip.range(range.getStart(), range.getEnd()).annotate(annotation.getName(),
-          annotation.getValue());
+      try {
+        toBlip.range(range.getStart() + 1, range.getEnd() + 1).annotate(annotation.getName(),
+            annotation.getValue());
+      } catch (final IndexOutOfBoundsException e) {
+        // Don't copy faulty annotations
+      }
     }
   }
 




More information about the kune-commits mailing list