Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369417 - NullPointerException in TaskEditorActionPart.refreshOperation()
Summary: NullPointerException in TaskEditorActionPart.refreshOperation()
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: 3.7   Edit
Assignee: Steffen Pingel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 373115 377938 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-23 11:40 EST by Steffen Pingel CLA
Modified: 2012-04-27 12:58 EDT (History)
3 users (show)

See Also:


Attachments
mylyn/context/zip (3.11 KB, application/octet-stream)
2012-03-01 17:14 EST, Steffen Pingel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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. ***