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

Bug 278522

Summary: NPE on task planning editor
Product: z_Archived Reporter: David Shepherd <david.shepherd>
Component: MylynAssignee: Steffen Pingel <steffen.pingel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: 3.2   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
Patch to avoid NPE, added null check
none
mylyn/context/zip none

Description David Shepherd CLA 2009-05-30 13:26:42 EDT
A call to refresh triggered by containersChanged in the TaskPlanningEditor causes an NPE.  To reproduce call TaskMigrator.execute with setOpenEditors(false), setDelete(true), and the editor set.

Caused by: java.lang.NullPointerException
	at org.eclipse.mylyn.tasks.ui.editors.TaskEditor.updateHeaderToolBar(TaskEditor.java:728)
	at org.eclipse.mylyn.internal.tasks.ui.editors.TaskPlanningEditor.refresh(TaskPlanningEditor.java:274)
	at org.eclipse.mylyn.internal.tasks.ui.editors.TaskPlanningEditor$2$1.run(TaskPlanningEditor.java:104)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
	... 36 more
Comment 1 David Shepherd CLA 2009-05-30 13:36:45 EDT
Created attachment 137756 [details]
Patch to avoid NPE, added null check
Comment 2 Steffen Pingel CLA 2009-06-01 22:59:43 EDT
Added null and disposed check.
Comment 3 Steffen Pingel CLA 2009-06-01 23:01:22 EDT
Created attachment 137936 [details]
mylyn/context/zip