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

Bug 340216

Summary: NPE during browsing MPC
Product: [Technology] MPC Reporter: Thomas Ehrnhoefer <thomas.ehrnhoefer>
Component: wizardAssignee: Steffen Pingel <steffen.pingel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: b.muskalla, steffen.pingel
Version: unspecified   
Target Milestone: 1.1   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
commited fix
none
mylyn/context/zip
none
mylyn/context/zip none

Description Thomas Ehrnhoefer CLA 2011-03-16 14:53:35 EDT
got this in the error log while using the MPC wizard:

java.lang.NullPointerException
	at org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand.installRemoteCatalogs(MarketplaceWizardCommand.java:183)
	at org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand.execute(MarketplaceWizardCommand.java:81)
	at org.eclipse.epp.mpc.ui.MarketplaceClient.openMarketplaceWizard(MarketplaceClient.java:85)
	at org.eclipse.epp.internal.mpc.ui.actions.WelcomeIntroAction.run(WelcomeIntroAction.java:30)
	at org.eclipse.ui.internal.intro.impl.model.url.IntroURL$2.run(IntroURL.java:295)
	at org.eclipse.ui.internal.intro.impl.model.url.IntroURL.runAction(IntroURL.java:298)
	at org.eclipse.ui.internal.intro.impl.model.url.IntroURL.doExecute(IntroURL.java:193)
	at org.eclipse.ui.internal.intro.impl.model.url.IntroURL$1.run(IntroURL.java:144)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.ui.internal.intro.impl.model.url.IntroURL.execute(IntroURL.java:141)
	at org.eclipse.ui.internal.intro.impl.presentations.BrowserIntroPartLocationListener.changing(BrowserIntroPartLocationListener.java:130)
	at org.eclipse.swt.browser.IE$6.handleEvent(IE.java:441)
	at org.eclipse.swt.ole.win32.OleEventTable.sendEvent(OleEventTable.java:55)
	at org.eclipse.swt.ole.win32.OleEventSink.notifyListener(OleEventSink.java:145)
	at org.eclipse.swt.ole.win32.OleEventSink.Invoke(OleEventSink.java:120)
	at org.eclipse.swt.ole.win32.OleEventSink.access$1(OleEventSink.java:97)
	at org.eclipse.swt.ole.win32.OleEventSink$1.method6(OleEventSink.java:71)
	at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:119)
	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2459)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3655)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
	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:369)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
Comment 1 Steffen Pingel CLA 2011-03-16 17:19:12 EDT
Created attachment 191359 [details]
commited fix
Comment 2 Steffen Pingel CLA 2011-03-16 17:19:13 EDT
Created attachment 191360 [details]
mylyn/context/zip
Comment 3 Steffen Pingel CLA 2011-03-16 17:20:05 EDT
This can happen when a dialog steals the focus from the active workbench window. Committed a fix.
Comment 4 Steffen Pingel CLA 2011-03-16 17:20:07 EDT
Created attachment 191361 [details]
mylyn/context/zip