Community
Participate
Working Groups
Build ID: I20080523-0100 Steps To Reproduce: 1. Install Eclipse 3.4RC2 on a fresh Windows (Vista 64Bit) 2. Install CDT Mainfatures + GNU Toolchain 3. Try to create a new C-Project 4. You will get a Nullpointerexception from the CygwinPathResolver.read (see Stacktrace below) More information: cdt-master-5.0.0-I200805231539 Ok I know that I have not installed any Compiler on my computer but a NPE should not happen. IMAO it should open an empty project wizard(?) eclipse.buildId=I20080523-0100 java.version=1.6.0_06 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE Command-line arguments: -os win32 -ws win32 -arch x86_64 Error Sun May 25 21:12:13 CEST 2008 Unhandled event loop exception java.lang.NullPointerException at org.eclipse.cdt.managedbuilder.gnu.cygwin.CygwinPathResolver.read(CygwinPathResolver.java:138) at org.eclipse.cdt.managedbuilder.gnu.cygwin.CygwinPathResolver.checkRegistry(CygwinPathResolver.java:167) at org.eclipse.cdt.managedbuilder.gnu.cygwin.CygwinPathResolver.getEtcPath(CygwinPathResolver.java:87) at org.eclipse.cdt.managedbuilder.gnu.cygwin.IsGnuCygwinToolChainSupported.isSupported(IsGnuCygwinToolChainSupported.java:50) at org.eclipse.cdt.managedbuilder.internal.core.ToolChain.isSupported(ToolChain.java:1759) at org.eclipse.cdt.managedbuilder.ui.wizards.AbstractCWizard.isValid(AbstractCWizard.java:55) at org.eclipse.cdt.managedbuilder.ui.wizards.ManagedBuildWizard.createItems(ManagedBuildWizard.java:53) at org.eclipse.cdt.ui.wizards.CDTMainWizardPage.updateData(CDTMainWizardPage.java:288) at org.eclipse.cdt.ui.wizards.CDTMainWizardPage.createControl(CDTMainWizardPage.java:92) at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:170) at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:669) at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:543) at org.eclipse.jface.window.Window.create(Window.java:431) at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089) at org.eclipse.ui.internal.navigator.wizards.WizardShortcutAction.run(WizardShortcutAction.java:91) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1002) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3801) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3400) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2387) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2351) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2203) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:112) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193) 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:379) 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:549) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504) at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Created attachment 104274 [details] Trivial patch to avoid the NPE This simple patch is to make the project creation wizard appears with Eclipse win32_x86_64. Please review it and commit. Thanks.
Makes sense.
Applied the patch. Fixed in 5.0 > 20080610. Thanks for the patch!