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

Bug 340237

Summary: NPE when entering credentials
Product: z_Archived Reporter: Steffen Pingel <steffen.pingel>
Component: MylynAssignee: Mylyn Inbox <mylyn-inbox>
Status: RESOLVED DUPLICATE QA Contact: Frank Becker <eclipse>
Severity: normal    
Priority: P3 CC: robert.elves
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip none

Description Steffen Pingel CLA 2011-03-16 16:13:17 EDT
What steps will reproduce the problem?
1. Start with clean workspace
2. Try to submit Eclipse.org bug
3. Enter invalid credentials in repository dialog
4. Press Finish

A number of popup dialogs with errors are displayed.


-- Error Details --
Date: Wed Mar 16 13:10:45 PDT 2011
Message: Unhandled event loop exception
Severity: Error
Product: Eclipse SDK 3.7.0.v201103101119 (org.eclipse.sdk.ide)


Exception Stack Trace:
java.lang.NullPointerException
	at org.eclipse.mylyn.internal.bugzilla.ui.tasklist.BugzillaRepositorySettingsPage.applyTo(BugzillaRepositorySettingsPage.java:465)
	at org.eclipse.mylyn.internal.tasks.ui.wizards.EditRepositoryWizard.performFinish(EditRepositoryWizard.java:77)
	at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)
	at org.eclipse.mylyn.tasks.ui.wizards.TaskRepositoryWizardDialog.buttonPressed(TaskRepositoryWizardDialog.java:125)
	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3568)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3189)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
	at org.eclipse.jface.window.Window.open(Window.java:801)
	at org.eclipse.mylyn.tasks.ui.TasksUiUtil.openEditRepositoryWizard(TasksUiUtil.java:200)
	at org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorPage.handleSubmitError(AbstractTaskEditorPage.java:1229)
	at org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorPage.handleTaskSubmitted(AbstractTaskEditorPage.java:1215)
	at org.eclipse.mylyn.internal.bugzilla.ui.editor.BugzillaTaskEditorPage.handleTaskSubmitted(BugzillaTaskEditorPage.java:465)
	at org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorPage$SubmitTaskJobListener$1.run(AbstractTaskEditorPage.java:231)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3543)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3192)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
	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)
Comment 1 Frank Becker CLA 2011-03-20 06:33:08 EDT
Steffen,

I can not reproduce this with the version in HEAD.

I think that the fix was in bug #333779 (see version 1.116 of BugzillaRepositorySettingsPage).

This patch was applied 30.1.11 so what version of the mylyn did you use?
Comment 2 Frank Becker CLA 2011-03-20 06:33:22 EDT
Created attachment 191574 [details]
mylyn/context/zip
Comment 3 Steffen Pingel CLA 2011-04-14 11:35:23 EDT
.

*** This bug has been marked as a duplicate of bug 333779 ***