Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 369417

Summary: NullPointerException in TaskEditorActionPart.refreshOperation()
Product: z_Archived Reporter: Steffen Pingel <steffen.pingel>
Component: MylynAssignee: Steffen Pingel <steffen.pingel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: b.muskalla, eclipse, tomasz.zarna
Version: unspecified   
Target Milestone: 3.7   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip none

Description Steffen Pingel CLA 2012-01-23 11:40:56 EST
This may have been the steps to reproduce but I'm not sure:

1. Create a new task as a subtask of an existing Eclipse.org bug
2. Change product


-- Error Details --
Date: Mon Jan 23 17:21:20 CET 2012
Message: Problems occurred when invoking code from plug-in: "org.eclipse.mylyn.tasks.core".
Severity: Error
Product: Eclipse SDK 3.8.0.v201112091447 (org.eclipse.sdk.ide)
Plugin: org.eclipse.mylyn.tasks.core
Session Data:
eclipse.buildId=I20111209-1447

Exception Stack Trace:
java.lang.NullPointerException
	at org.eclipse.mylyn.internal.tasks.ui.editors.TaskEditorActionPart.refreshOperations(TaskEditorActionPart.java:468)
	at org.eclipse.mylyn.internal.bugzilla.ui.editor.BugzillaTaskEditorPage$ProductSelectionListener.attributeChanged(BugzillaTaskEditorPage.java:476)
	at org.eclipse.mylyn.tasks.core.data.TaskDataModel$1.run(TaskDataModel.java:91)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.mylyn.tasks.core.data.TaskDataModel.attributeChanged(TaskDataModel.java:85)
	at org.eclipse.mylyn.tasks.ui.editors.AbstractAttributeEditor.attributeChanged(AbstractAttributeEditor.java:105)
	at org.eclipse.mylyn.internal.tasks.ui.editors.SingleSelectionAttributeEditor.setValue(SingleSelectionAttributeEditor.java:146)
	at org.eclipse.mylyn.internal.tasks.ui.editors.SingleSelectionAttributeEditor$1.widgetSelected(SingleSelectionAttributeEditor.java:69)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
	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.Widget.notifyListeners(Widget.java:1061)
	at org.eclipse.swt.custom.CCombo.listEvent(CCombo.java:1127)
	at org.eclipse.swt.custom.CCombo$1.handleEvent(CCombo.java:115)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
...
Comment 1 Steffen Pingel CLA 2012-03-01 17:14:48 EST
I have added a null check to avoid updating non existent buttons.
Comment 2 Steffen Pingel CLA 2012-03-01 17:14:50 EST
Created attachment 211917 [details]
mylyn/context/zip
Comment 3 Steffen Pingel CLA 2012-03-02 11:20:07 EST
*** Bug 373115 has been marked as a duplicate of this bug. ***
Comment 4 Steffen Pingel CLA 2012-04-27 12:58:13 EDT
*** Bug 377938 has been marked as a duplicate of this bug. ***