diff options
author | Uwe Stieber | 2012-10-15 15:27:56 +0000 |
---|---|---|
committer | Uwe Stieber | 2012-10-15 15:28:28 +0000 |
commit | 2aebcb4dc7fa77b7b9c31332d04c1e4e3fefcadc (patch) | |
tree | 7fc1850577a721ff92cc5a626b848f0bf4311db9 /plugins | |
parent | 760a21a8636bc1e3521bcbd6abd6ae1fb37c27c6 (diff) | |
download | org.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.java | 6 |
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++; } } |