Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357541 - NPE thrown when trying to open a task and cancelling out of a new task operation
Summary: NPE thrown when trying to open a task and cancelling out of a new task operation
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.7   Edit
Assignee: Steffen Pingel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-13 14:56 EDT by Remy Suen CLA
Modified: 2011-09-14 16:47 EDT (History)
0 users

See Also:


Attachments
mylyn/context/zip (13.29 KB, application/octet-stream)
2011-09-14 16:47 EDT, Steffen Pingel CLA
no flags Details

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