Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 236066 - [ecf.mylyn] importing a received task to an empty task list generates NullPointerExcepiton
Summary: [ecf.mylyn] importing a received task to an empty task list generates NullPoi...
Status: RESOLVED FIXED
Alias: None
Product: ECF
Classification: RT
Component: ecf.ui (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Remy Suen CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-06 11:25 EDT by Kent Sebastian CLA
Modified: 2008-06-06 16:36 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Sebastian CLA 2008-06-06 11:25:00 EDT
Build ID: I20080523-0100

Steps To Reproduce:
1. Empty task list, restart eclipse
2. Receive a task via ecf.mylyn (xmpp)
3. Open Task Selection dialog, import the received task

Note: does not occur if the task was already imported (but failed), deleted, then imported again within the same eclipse instance


More information:

Using:
-Mylyn 3.0.0.I20080526
-ECF 2.0
-org.eclipse.ecf.mylyn.ui HEAD (v1.3) with https://bugs.eclipse.org/bugs/show_bug.cgi?id=235930 patch 
-on Eclipse 3.4RC2
Comment 1 Remy Suen CLA 2008-06-06 12:44:08 EDT
Please attach said NPE.
Comment 2 Remy Suen CLA 2008-06-06 16:14:46 EDT
I suspect that this is because the menu hasn't been created yet, so we have no working shell. Thanks for the report, Kent.
Comment 3 Remy Suen CLA 2008-06-06 16:18:34 EDT
Actually, or maybe not since you claim the task list is empty, I guess these are two separate bugs. Will investigate further later.
Comment 4 Remy Suen CLA 2008-06-06 16:24:23 EDT
Nope, I was right, it all goes back to the null shell. NPE attached.

java.lang.NullPointerException
	at org.eclipse.ecf.internal.mylyn.ui.CompoundContextActivationContributionItem$ActivateTaskAction.scheduleTaskActivationJob(CompoundContextActivationContributionItem.java:129)
	at org.eclipse.ecf.internal.mylyn.ui.CompoundContextActivationContributionItem$ActivateTaskAction.access$0(CompoundContextActivationContributionItem.java:128)
	at org.eclipse.ecf.internal.mylyn.ui.CompoundContextActivationContributionItem$2.run(CompoundContextActivationContributionItem.java:118)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Comment 5 Remy Suen CLA 2008-06-06 16:36:24 EDT
Fixed in HEAD.