diff src/org/tmatesoft/hg/internal/Patch.java @ 532:688c1ab113bb

Introduce explicit reference to base patch in bundle's group element, use it when cloning to fix defect when few revisions list null,null parents
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 23 Jan 2013 19:14:15 +0100
parents 0f6fa88e2162
children e6f72c9829a6
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/Patch.java	Wed Jan 23 18:03:13 2013 +0100
+++ b/src/org/tmatesoft/hg/internal/Patch.java	Wed Jan 23 19:14:15 2013 +0100
@@ -114,11 +114,7 @@
 			destIndex += start - prevEnd;
 			// insert new data from the patch, if any
 			byte[] d = data.get(i);
-			try {
-				System.arraycopy(d, 0, rv, destIndex, d.length);
-			} catch (ArrayIndexOutOfBoundsException ex) {
-				ex.printStackTrace();
-			}
+			System.arraycopy(d, 0, rv, destIndex, d.length);
 			destIndex += d.length;
 			prevEnd = ends.get(i);
 		}