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

Bug 357541

Summary: NPE thrown when trying to open a task and cancelling out of a new task operation
Product: z_Archived Reporter: Remy Suen <remy.suen>
Component: MylynAssignee: Steffen Pingel <steffen.pingel>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3    
Version: unspecified   
Target Milestone: 3.7   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip none

Description Remy Suen CLA 2011-09-13 14:56:06 EDT
1. Ctrl+F12
2. Click the 'New Task...' button.
3. Click 'Cancel'.
4. An NPE is logged.

Caused by: java.lang.NullPointerException
	at org.eclipse.mylyn.internal.tasks.ui.actions.OpenTaskAction.run(OpenTaskAction.java:50)
	at org.eclipse.ui.actions.ActionDelegate.runWithEvent(ActionDelegate.java:70)
	at org.eclipse.ui.internal.handlers.ActionDelegateHandlerProxy.execute(ActionDelegateHandlerProxy.java:281)
	at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:68)
	at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
	... 33 more
Comment 1 Steffen Pingel CLA 2011-09-14 05:18:15 EDT
Thanks for the bug! We'll look into that.
Comment 2 Steffen Pingel CLA 2011-09-14 16:47:00 EDT
The new task action does a reference to the created task so the best I could do was adding a null check.
Comment 3 Steffen Pingel CLA 2011-09-14 16:47:02 EDT
Created attachment 203366 [details]
mylyn/context/zip