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 180731 - NPE on changing project properties
Summary: NPE on changing project properties
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P1 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
: 180730 180738 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-15 06:49 UTC by Alexander Pepin
Modified: 2010-06-17 10:42 UTC (History)
1 user (show)

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 2010-02-15 06:49:15 UTC
Steps to reproduce:
- create welcome sample project
- open Project properties
- change "Run->Console Type" to "Output Window"
- press OK
Result: NPE occurs
java.lang.NullPointerException
	at org.netbeans.modules.cnd.makeproject.configurations.ui.ProjectPropPanel.save(ProjectPropPanel.java:127)
	at org.netbeans.modules.cnd.makeproject.ui.customizer.MakeCustomizer.save(MakeCustomizer.java:378)
	at org.netbeans.modules.cnd.makeproject.api.MakeCustomizerProvider$OptionListener.actionPerformed(MakeCustomizerProvider.java:256)
	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.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
	at java.awt.Component.processMouseEvent(Component.java:6263)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
	at java.awt.Component.processEvent(Component.java:6028)
	at java.awt.Container.processEvent(Container.java:2041)
	at java.awt.Component.dispatchEventImpl(Component.java:4630)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
	at java.awt.Container.dispatchEventImpl(Container.java:2085)
	at java.awt.Window.dispatchEventImpl(Window.java:2475)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:130)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
	at java.awt.Dialog$1.run(Dialog.java:1045)
	at java.awt.Dialog$3.run(Dialog.java:1097)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.Dialog.show(Dialog.java:1095)
	at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:988)
	at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:1022)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:1010)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:118)
	at org.openide.util.Mutex$1AWTWorker.run(Mutex.java:1370)
[catch] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:130)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 1 Vladimir Kvashin 2010-02-15 07:55:56 UTC
*** Bug 180730 has been marked as a duplicate of this bug. ***
Comment 2 Vladimir Kvashin 2010-02-15 07:58:44 UTC
fixed in cnd-main:
http://hg.netbeans.org/cnd-main/rev/003569766808

I'll port the fix into M1 shortly.
Comment 3 Alexander Pepin 2010-02-15 08:13:07 UTC
*** Bug 180738 has been marked as a duplicate of this bug. ***
Comment 4 Alexander Pepin 2010-02-15 09:32:13 UTC
The fix is verified in NB6.9M1 with provided org-netbeans-modules-cnd-makeproject.jar

Please integrate the fix into M1 branch.
Comment 5 Vladimir Kvashin 2010-02-15 10:28:03 UTC
The fix is pished into M1 branch:
http://hg.netbeans.org/release69_m1/rev/633335a55a4c
Comment 6 Alexander Pepin 2010-02-16 06:08:11 UTC
verified in M1 build 20100215
Comment 7 Quality Engineering 2010-02-16 21:55:39 UTC
Integrated into 'main-golden', will be available in build *201002170200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/003569766808
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #180731  NPE on changing project properties