Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-10-15 15:27:56 +0000
committerUwe Stieber2012-10-15 15:28:28 +0000
commit2aebcb4dc7fa77b7b9c31332d04c1e4e3fefcadc (patch)
tree7fc1850577a721ff92cc5a626b848f0bf4311db9 /plugins
parent760a21a8636bc1e3521bcbd6abd6ae1fb37c27c6 (diff)
downloadorg.eclipse.tcf-2aebcb4dc7fa77b7b9c31332d04c1e4e3fefcadc.tar.gz
org.eclipse.tcf-2aebcb4dc7fa77b7b9c31332d04c1e4e3fefcadc.tar.xz
org.eclipse.tcf-2aebcb4dc7fa77b7b9c31332d04c1e4e3fefcadc.zip
Eclipse Integration: Fix Bug 391941 - BundleException while initializing org.eclipse.tcf integration bundle
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.tcf.core/activator/org/eclipse/tcf/internal/Activator.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/org.eclipse.tcf.core/activator/org/eclipse/tcf/internal/Activator.java b/plugins/org.eclipse.tcf.core/activator/org/eclipse/tcf/internal/Activator.java
index e755ef269..15fd703ea 100644
--- a/plugins/org.eclipse.tcf.core/activator/org/eclipse/tcf/internal/Activator.java
+++ b/plugins/org.eclipse.tcf.core/activator/org/eclipse/tcf/internal/Activator.java
@@ -33,7 +33,11 @@ public class Activator implements BundleActivator {
if (bundles != null) {
for (Bundle bundle : bundles) {
if ((bundle.getState() & (Bundle.INSTALLED | Bundle.UNINSTALLED)) == 0) {
- bundle.start(Bundle.START_TRANSIENT);
+ // Call the start(...) only if in RESOLVED state, otherwise
+ // this can trigger a state change bundle exception
+ if (bundle.getState() == Bundle.RESOLVED) {
+ bundle.start(Bundle.START_TRANSIENT);
+ }
cnt++;
}
}

Back to the top