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 87664 - Buttons on "Batch Build" should be disabled
Summary: Buttons on "Batch Build" should be disabled
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Thomas Preisler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-20 17:21 UTC by dnikitin
Modified: 2007-05-25 16:47 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 dnikitin 2006-10-20 17:21:22 UTC
Buttons on Batch Build dialog box work incorrectly.

There is a chance to get the following exception:

java.lang.ArrayIndexOutOfBoundsException: 0
	at
org.netbeans.modules.cnd.makeproject.api.DefaultProjectActionHandler$HandleEvents.getTabName(DefaultProjectActionHandler.java:71)
	at
org.netbeans.modules.cnd.makeproject.api.DefaultProjectActionHandler$HandleEvents.<init>(DefaultProjectActionHandler.java:120)
	at
org.netbeans.modules.cnd.makeproject.api.DefaultProjectActionHandler.actionPerformed(DefaultProjectActionHandler.java:59)
	at
org.netbeans.modules.cnd.makeproject.api.ProjectActionSupport.fireActionPerformed(ProjectActionSupport.java:50)
	at
org.netbeans.modules.cnd.makeproject.MakeActionProvider.invokeAction(MakeActionProvider.java:199)
	at
org.netbeans.modules.project.ui.actions.ProjectAction.actionPerformed(ProjectAction.java:96)
	at
org.netbeans.modules.project.ui.actions.LookupSensitiveAction.actionPerformed(LookupSensitiveAction.java:139)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
	at
javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
	at java.awt.Component.processMouseEvent(Component.java:5488)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
	at java.awt.Component.processEvent(Component.java:5253)
	at java.awt.Container.processEvent(Container.java:1966)
	at java.awt.Component.dispatchEventImpl(Component.java:3955)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
	at java.awt.Container.dispatchEventImpl(Container.java:2010)
	at java.awt.Window.dispatchEventImpl(Window.java:1774)
	at java.awt.Component.dispatchEvent(Component.java:3803)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)  
------------------------------

to reproduce 
1. Right-click on project to open Batch Build dialog box
2. Click "Deselect All" button
3. Click "Close" button to close dialog
4. Open Batch Build dialog box again

==> All configurations in the list are uncheck and ALL Button (Build, Clean,
Clean and Build) are active.

In order to get exception you have to click on "Build"("Clean","Clean and
Build") button.
Comment 1 dnikitin 2006-11-24 14:33:24 UTC
I can not reproduce this exception on  C/C++ Pack 20061122.

But this bug remains opened because buttons "Build", "Clean and Build" and
"Clean" should be unactive if no configurations are selected.

Priority is downgraded to P4.
Comment 2 Thomas Preisler 2007-05-24 00:43:07 UTC
Fixed.
Comment 3 dnikitin 2007-05-25 16:47:47 UTC
Verified in C/C++ Pack 20070525