Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Remove toolbar Contribution Item throws NullPointerException(Remove toolbar Contribution Item throws NullPointerException in RCP 4.4.2)
Remove toolbar Contribution Item throws NullPointerException [message #1705504] Mon, 17 August 2015 09:05
Paramesh Aluvala is currently offline Paramesh AluvalaFriend
Messages: 1
Registered: August 2015
Junior Member
After changing RCP from 3.6 to 4.4.2, NullPointerException is thrown, while removing ContributionItem from CoolBarManaer in WorkbenchWindowAdvisor.postWindowOpen() , Same code was working fine in 3.6.

Code used to remove ContributionItem

ICoolBarManager coolBarManager = getWindowConfigurer().getActionBarConfigurer().getCoolBarManager();
IContributionItem removedItem = coolBarManager.remove(contributionItem);

StackTrace

java.lang.NullPointerException
at org.eclipse.e4.ui.workbench.renderers.swt.ToolBarManagerRenderer.cleanUpCopy(ToolBarManagerRenderer.java:595)
at org.eclipse.e4.ui.workbench.renderers.swt.ToolBarManagerRenderer.cleanUp(ToolBarManagerRenderer.java:575)
at org.eclipse.e4.ui.workbench.renderers.swt.ToolBarManagerRenderer$9.widgetDisposed(ToolBarManagerRenderer.java:447)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:123)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066)
at org.eclipse.swt.widgets.Widget.release(Widget.java:816)
at org.eclipse.swt.widgets.Widget.dispose(Widget.java:454)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.disposeWidget(SWTPartRenderer.java:175)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeRemoveGui(PartRenderingEngine.java:933)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$3(PartRenderingEngine.java:862)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$8.run(PartRenderingEngine.java:857)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

Thanks
Paramesh
Previous Topic:RCP, Environment Variables, OS X, Info.plist and LSEnvironment
Next Topic:Binding Text-Field with Double Property
Goto Forum:
  


Current Time: Thu Dec 03 21:10:39 GMT 2020

Powered by FUDForum. Page generated in 0.01352 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top