commit | 7668a5ff088b3b70535aab3f0fff876b4c55bcc3 | [log] [tgz] |
---|---|---|
author | Tom Schindl <tom.schindl@bestsolution.at> | Thu Oct 01 14:43:48 2015 +0200 |
committer | Tom Schindl <tom.schindl@bestsolution.at> | Thu Oct 01 14:43:48 2015 +0200 |
tree | 8709eed3bf8333c268c1595130f1480658169d2a | |
parent | d82c435c6ebc75723d0943076cd04cd0b4ef2f4a [diff] |
Bug 478801 - Error on shutdown while unbinding OSGi GraphicNodeProvider services
diff --git a/bundles/runtime/org.eclipse.fx.ui.workbench.fx/src/org/eclipse/fx/ui/workbench/fx/internal/ProviderComponent.java b/bundles/runtime/org.eclipse.fx.ui.workbench.fx/src/org/eclipse/fx/ui/workbench/fx/internal/ProviderComponent.java index c1de7ce..4bf0f5c 100644 --- a/bundles/runtime/org.eclipse.fx.ui.workbench.fx/src/org/eclipse/fx/ui/workbench/fx/internal/ProviderComponent.java +++ b/bundles/runtime/org.eclipse.fx.ui.workbench.fx/src/org/eclipse/fx/ui/workbench/fx/internal/ProviderComponent.java
@@ -156,8 +156,10 @@ synchronized (this.graphicProviderBySuffix) { for (Set<RankedEntry<GraphicNodeProvider>> set : this.graphicProviderBySuffix.values()) { Iterator<RankedEntry<GraphicNodeProvider>> it = set.iterator(); - if (it.next().provider == provider) { - it.remove(); + while( it.hasNext() ) { + if (it.next().provider == provider) { + it.remove(); + } } } }