Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2010-05-12 01:44:44 +0000
committerPascal Rapicault2010-05-12 01:44:44 +0000
commiteae2ed7cee7e29d2be03b115336958ea4feb67a7 (patch)
treeaf4081972bb1cb07514e627605d99572269339d9
parent78600b7ec5f1125c1a8f00ebdd32e3d6548eee80 (diff)
downloadrt.equinox.p2-eae2ed7cee7e29d2be03b115336958ea4feb67a7.tar.gz
rt.equinox.p2-eae2ed7cee7e29d2be03b115336958ea4feb67a7.tar.xz
rt.equinox.p2-eae2ed7cee7e29d2be03b115336958ea4feb67a7.zip
Bug 312500 - Bad array index in MirrorApplication
-rw-r--r--bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/tools/MirrorApplication.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/tools/MirrorApplication.java b/bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/tools/MirrorApplication.java
index d4168db40..43b92e088 100644
--- a/bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/tools/MirrorApplication.java
+++ b/bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/tools/MirrorApplication.java
@@ -272,8 +272,8 @@ public class MirrorApplication extends AbstractApplication implements IApplicati
sourceIUs = new ArrayList<IInstallableUnit>();
for (int i = 0; i < rootIUs.length; i++) {
String[] segments = getArrayArgsFromString(rootIUs[i], "/"); //$NON-NLS-1$
- VersionRange range = segments.length > 1 ? new VersionRange(segments[i]) : null;
- Iterator<IInstallableUnit> queryResult = metadataRepo.query(QueryUtil.createIUQuery(segments[i], range), null).iterator();
+ VersionRange range = segments.length > 1 ? new VersionRange(segments[1]) : null;
+ Iterator<IInstallableUnit> queryResult = metadataRepo.query(QueryUtil.createIUQuery(segments[0], range), null).iterator();
while (queryResult.hasNext())
sourceIUs.add(queryResult.next());
}

Back to the top