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 147439 - npe if compilerset not found and you try and build project
Summary: npe if compilerset not found and you try and build project
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-17 04:13 UTC by Thomas Preisler
Modified: 2008-09-19 17:34 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 Thomas Preisler 2008-09-17 04:13:58 UTC
1) create a project using for instance the SunStudio compiler set. You can hand-edit a projet's configurationsxml file and replace compilerste with:
<compilerSet>SunStudio|SunStudio</compilerSet>. Or create on a machine with Sun Studio compilers.
2) remove compiler set from available sets and close IDE.
3) open IDE and open project againg and try and build:

java.lang.NullPointerException
	at org.netbeans.modules.cnd.api.compilers.CompilerSet.<init>(CompilerSet.java:249)
	at org.netbeans.modules.cnd.api.compilers.CompilerSet.getCustomCompilerSet(CompilerSet.java:321)
	at org.netbeans.modules.cnd.makeproject.MakeActionProvider.validateBuildSystem(MakeActionProvider.java:988)
	at org.netbeans.modules.cnd.makeproject.MakeActionProvider.addAction(MakeActionProvider.java:594)
	at org.netbeans.modules.cnd.makeproject.MakeActionProvider$1.run(MakeActionProvider.java:268)
	at org.netbeans.modules.cnd.makeproject.MakeActionProvider.runActionWorker(MakeActionProvider.java:282)
	at org.netbeans.modules.cnd.makeproject.MakeActionProvider.invokeAction(MakeActionProvider.java:277)
	at org.netbeans.modules.project.ui.actions.MainProjectAction.actionPerformed(MainProjectAction.java:138)
	at org.netbeans.modules.project.ui.actions.LookupSensitiveAction.actionPerformed(LookupSensitiveAction.java:161)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
	at java.awt.Component.processMouseEvent(Component.java:5602)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
	at java.awt.Component.processEvent(Component.java:5367)
	at java.awt.Container.processEvent(Container.java:2010)
	at java.awt.Component.dispatchEventImpl(Component.java:4068)
	at java.awt.Container.dispatchEventImpl(Container.java:2068)
	at java.awt.Component.dispatchEvent(Component.java:3903)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
	at java.awt.Container.dispatchEventImpl(Container.java:2054)
	at java.awt.Window.dispatchEventImpl(Window.java:1791)
	at java.awt.Component.dispatchEvent(Component.java:3903)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 Alexander Simon 2008-09-18 16:27:34 UTC
fixed, change set:
http://hg.netbeans.org/main/rev/16cc9d4301fe
Comment 2 Quality Engineering 2008-09-19 17:34:36 UTC
Integrated into 'main-golden', will be available in build *200809191401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/16cc9d4301fe
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed: IZ#147439:npe if compilerset not found and you try and build project