Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 373186 - NPE in TaskContextStore.moveContext() on task submission
Summary: NPE in TaskContextStore.moveContext() on task submission
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: 3.7   Edit
Assignee: Steffen Pingel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 226618
  Show dependency tree
 
Reported: 2012-03-03 14:07 EST by Steffen Pingel CLA
Modified: 2012-03-07 05:55 EST (History)
0 users

See Also:


Attachments
mylyn/context/zip (10.01 KB, application/octet-stream)
2012-03-03 14:11 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-03-03 14:07:50 EST
What steps will reproduce the problem?
1. 
2. 
3. 


-- Error Details --
Date: Sat Mar 03 20:05:04 CET 2012
Message: Unhandled event loop exception
Severity: Error
Plugin: org.eclipse.ui
Session Data:
eclipse.buildId=2.9.0.201203011000-RELEASE
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.

Exception Stack Trace:
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
	at org.eclipse.swt.SWT.error(SWT.java:4282)
	at org.eclipse.swt.SWT.error(SWT.java:4197)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3563)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3212)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: java.lang.NullPointerException
	at org.eclipse.mylyn.internal.context.tasks.ui.TaskContextStore.moveContext(TaskContextStore.java:173)
	at org.eclipse.mylyn.internal.tasks.ui.editors.TaskMigrator.copyProperties(TaskMigrator.java:191)
	at org.eclipse.mylyn.internal.tasks.ui.editors.TaskMigrator.execute(TaskMigrator.java:91)
	at org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorPage$SubmitTaskJobListener$1.run(AbstractTaskEditorPage.java:228)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	... 23 more
Comment 1 Steffen Pingel CLA 2012-03-03 14:11:30 EST
This has been fixed. A possible work-around is to activate a task prior to submission to force creation of the task store instance. The task is submitted in either case.
Comment 2 Steffen Pingel CLA 2012-03-03 14:11:32 EST
Created attachment 212032 [details]
mylyn/context/zip