Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357752 - [modeling] NPE when pressing remove from context key-binding
Summary: [modeling] NPE when pressing remove from context key-binding
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 0.9   Edit
Assignee: Miles Parker CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 357747 354787
  Show dependency tree
 
Reported: 2011-09-15 05:44 EDT by Steffen Pingel CLA
Modified: 2011-12-06 12:11 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Pingel CLA 2011-09-15 05:44:50 EDT
I pressed Alt+Ctrl+Shift+Down on an Ecore model element in the context page of the task editor.

java.lang.NullPointerException
	at org.eclipse.mylyn.modeling.gmf.ContextDecoratorProvider.refresh(ContextDecoratorProvider.java:307)
	at org.eclipse.mylyn.modeling.gmf.ContextDecoratorProvider.refresh(ContextDecoratorProvider.java:325)
	at org.eclipse.mylyn.modeling.gmf.ContextDecoratorProvider.contextChanged(ContextDecoratorProvider.java:400)
	at org.eclipse.mylyn.modeling.gmf.ContextDecoratorProvider$1.contextChanged(ContextDecoratorProvider.java:86)
	at org.eclipse.mylyn.internal.context.core.InteractionContextManager$9.run(InteractionContextManager.java:1085)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.mylyn.internal.context.core.InteractionContextManager.notifyElementsDeleted(InteractionContextManager.java:1076)
	at org.eclipse.mylyn.internal.context.core.InteractionContextManager.manipulateInterestForElements(InteractionContextManager.java:936)
	at org.eclipse.mylyn.internal.context.ui.actions.AbstractInterestManipulationAction.run(AbstractInterestManipulationAction.java:105)
	at org.eclipse.mylyn.internal.context.ui.actions.RemoveFromContextCommandHandler.execute(RemoveFromContextCommandHandler.java:27)
	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
	at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:468)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:786)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:885)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:567)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:508)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:123)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1531)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1257)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267)
	at org.eclipse.swt.widgets.Control.traverse(Control.java:4858)
	at org.eclipse.swt.widgets.Control.translateTraversal(Control.java:4836)
	at org.eclipse.swt.widgets.Composite.translateTraversal(Composite.java:1542)
	at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:3016)
	at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:734)
	at org.eclipse.swt.widgets.Tree.gtk_key_press_event(Tree.java:2002)
	at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1743)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:5016)
	at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:3530)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4408)
	at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
	at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:8394)
	at org.eclipse.swt.widgets.Display.eventProc(Display.java:1245)
	at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
	at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2258)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3207)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Comment 1 Miles Parker CLA 2011-09-15 14:16:11 EDT
This is probably a consequence of the key binding issue.
Comment 2 Steffen Pingel CLA 2011-09-15 14:32:04 EDT
Looks like the equals comparision should be reverted.
Comment 3 Miles Parker CLA 2011-09-15 15:32:41 EDT
Well, content type should never be null in any case, right? I wonder if this isn't related to the corruption in bug 357768
Comment 4 Miles Parker CLA 2011-09-26 23:04:31 EDT
OK, I won't be cute and say that this is no longer an issue because we got rid of the key-binding. :) But I tested by invoking menu item and it seems to work fine.