Bug 536677 - Fix the disposal order in ActionSetActionBars

Change-Id: I50e2391befd5314141358737786debabd7b7f0e8
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ActionSetActionBars.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ActionSetActionBars.java
index a7fe1b2..c5f19e6 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ActionSetActionBars.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ActionSetActionBars.java
@@ -79,8 +79,8 @@
 	 */
 	@Override
 	public void dispose() {
-		super.dispose();
 		if (coolItemToolBarMgr == null) {
+			super.dispose();
 			return;
 		}
 		// remove the action set's items from its action bar, don't use
@@ -113,6 +113,7 @@
 		toolBarContributionItem = null;
 		coolItemToolBarMgr = null;
 		adjunctContributions = new ArrayList();
+		super.dispose();
 	}
 
 	/**