Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Hallgren2010-05-19 04:37:52 +0000
committerThomas Hallgren2010-05-19 04:37:52 +0000
commit169558d17643bbc8d83bd9f3453f7fb86e3956ac (patch)
tree0a731bc0bb6e8c10249484979d4a34b959d4bec7
parente00013a6b44e0dffa434195c5e1171551a4e7d58 (diff)
downloadrt.equinox.p2-169558d17643bbc8d83bd9f3453f7fb86e3956ac.tar.gz
rt.equinox.p2-169558d17643bbc8d83bd9f3453f7fb86e3956ac.tar.xz
rt.equinox.p2-169558d17643bbc8d83bd9f3453f7fb86e3956ac.zip
313299: Class cast exception in p2 engine
-rw-r--r--bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/IUMap.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/IUMap.java b/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/IUMap.java
index e3af9283d..99d7b7531 100644
--- a/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/IUMap.java
+++ b/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/IUMap.java
@@ -191,8 +191,9 @@ public class IUMap implements Cloneable {
if (matching == null)
return;
- if (matching instanceof IInstallableUnit && matching.equals(unit)) {
- units.remove(key);
+ if (matching instanceof IInstallableUnit) {
+ if (matching.equals(unit))
+ units.remove(key);
return;
}

Back to the top