This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 101075 - NPE if GNU collection is not in paths
Summary: NPE if GNU collection is not in paths
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: _ gordonp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-15 17:30 UTC by Alexander Pepin
Modified: 2007-04-17 17:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2007-04-15 17:30:17 UTC
Steps to reproduce:
- open IDE
- open any existing project or create a new one
- open Tools->Options-> C/C++ -> Build Tools
- remove path to GNU collection (C:\cygwin\bin) from paths
- right-click on the project node and call Properties
Result: NPE occurs:
java.lang.NullPointerException
	at
org.netbeans.modules.cnd.makeproject.ui.customizer.MakeCustomizer.createCCompilerDescription(MakeCustomizer.java:882)
	at
org.netbeans.modules.cnd.makeproject.ui.customizer.MakeCustomizer.createNewDescription(MakeCustomizer.java:793)
	at
org.netbeans.modules.cnd.makeproject.ui.customizer.MakeCustomizer.createRootNodeProject(MakeCustomizer.java:556)
	at
org.netbeans.modules.cnd.makeproject.ui.customizer.MakeCustomizer.createRootNode(MakeCustomizer.java:502)
	at
org.netbeans.modules.cnd.makeproject.ui.customizer.MakeCustomizer.<init>(MakeCustomizer.java:125)
	at
org.netbeans.modules.cnd.makeproject.api.MakeCustomizerProvider.showCustomizer(MakeCustomizerProvider.java:146)
	at
org.netbeans.modules.cnd.makeproject.api.MakeCustomizerProvider.showCustomizer(MakeCustomizerProvider.java:83)
	at
org.netbeans.modules.project.ui.actions.CustomizeProject.actionPerformed(CustomizeProject.java:76)
	at
org.netbeans.modules.project.ui.actions.LookupSensitiveAction.actionPerformed(LookupSensitiveAction.java:139)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1170)
	at
javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1211)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
	at java.awt.Component.processMouseEvent(Component.java:6038)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
	at java.awt.Component.processEvent(Component.java:5803)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4410)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4240)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
	at java.awt.Container.dispatchEventImpl(Container.java:2102)
	at java.awt.Window.dispatchEventImpl(Window.java:2429)
	at java.awt.Component.dispatchEvent(Component.java:4240)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 _ gordonp 2007-04-16 18:36:39 UTC
Please see my comment on 101077. Was the Cygwin collection you removed the
only compiler collection?
Comment 2 Alexander Pepin 2007-04-16 19:00:47 UTC
Yes, Cygwin compiler set was one and only compiler set on the computer. This is a
common situation for windows machines.
Comment 3 _ gordonp 2007-04-17 01:04:01 UTC
Fixed. I no longer allow the last compiler set to be deleted. It leaves
the IDE in an unusable state! (Hence the NPEs in 101075 and 101077)
Comment 4 Alexander Pepin 2007-04-17 17:24:22 UTC
verified in cnd build 20070417