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 35096 - Unexpected exception in the Macros property editor
Summary: Unexpected exception in the Macros property editor
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: -S1S-
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-23 12:43 UTC by ccv
Modified: 2007-11-05 13:44 UTC (History)
3 users (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 ccv 2003-07-23 12:43:28 UTC
Tools->Options->Editing->Editor Setting->C and C++
Editor

1. Select Macros property editor
2. Focus is in the empty table, button Edit and
Remove are enabled
2. Push the Tab key
3. Push Alt-E or Alt-R 
Unexpected exception appears:
java.lang.ArrayIndexOutOfBoundsException: 0
	at
org.netbeans.modules.editor.options.MacrosEditorPanel$PairStringModel.getValueAt(MacrosEditorPanel.java:282)
	at
org.netbeans.modules.editor.options.MacrosEditorPanel$PairStringModel.getPair(MacrosEditorPanel.java:298)
	at
org.netbeans.modules.editor.options.MacrosEditorPanel.editButtonActionPerformed(MacrosEditorPanel.java:183)
	at
org.netbeans.modules.editor.options.MacrosEditorPanel.access$100(MacrosEditorPanel.java:36)
	at
org.netbeans.modules.editor.options.MacrosEditorPanel$2.actionPerformed(MacrosEditorPanel.java:145)
	at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
	at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)
	at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
	at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
	at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
	at
java.awt.Component.processMouseEvent(Component.java:5134)
	at
java.awt.Component.processEvent(Component.java:4931)
	at
java.awt.Container.processEvent(Container.java:1566)
	at
java.awt.Component.dispatchEventImpl(Component.java:3639)
	at
java.awt.Container.dispatchEventImpl(Container.java:1623)
	at
java.awt.Component.dispatchEvent(Component.java:3480)
	at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
	at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
	at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
	at
java.awt.Container.dispatchEventImpl(Container.java:1609)
	at
java.awt.Window.dispatchEventImpl(Window.java:1590)
	at
java.awt.Component.dispatchEvent(Component.java:3480)
[catch] at
java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:140)
	at java.awt.Dialog.show(Dialog.java:538)
	at
org.netbeans.core.NbPresenter.superShow(NbPresenter.java:690)
	at
org.netbeans.core.NbPresenter.doShow(NbPresenter.java:733)
	at
org.netbeans.core.NbPresenter.run(NbPresenter.java:721)
	at
org.openide.util.Mutex.doEventAccess(Mutex.java:932)
	at
org.openide.util.Mutex.readAccess(Mutex.java:157)
	at
org.netbeans.core.NbPresenter.show(NbPresenter.java:706)
	at
org.openide.explorer.propertysheet.PropertyPanel$CustomizeListener.sheetButtonClicked(PropertyPanel.java:1880)
	at
org.openide.explorer.propertysheet.SheetButton.notifySheetButtonListenersAboutClick(SheetButton.java:468)
	at
org.openide.explorer.propertysheet.SheetButton$IL.mouseReleased(SheetButton.java:539)
	at
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:227)
	at
java.awt.Component.processMouseEvent(Component.java:5134)
	at
java.awt.Component.processEvent(Component.java:4931)
	at
java.awt.Container.processEvent(Container.java:1566)
	at
java.awt.Component.dispatchEventImpl(Component.java:3639)
	at
java.awt.Container.dispatchEventImpl(Container.java:1623)
	at
java.awt.Component.dispatchEvent(Component.java:3480)
	at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
	at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
	at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
	at
java.awt.Container.dispatchEventImpl(Container.java:1609)
	at
java.awt.Window.dispatchEventImpl(Window.java:1590)
	at
java.awt.Component.dispatchEvent(Component.java:3480)
	at
java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
	at
java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

Edit and Remove button should be disabled when
table is empty.

Product Version       = Sun ONE Studio, Native
Edition (Build 030715)-- build 13
IDE Versioning        = IDE/1 spec=3.42.1
impl=030715
Operating System      = SunOS version 5.8 
Java; VM; Vendor = 1.4.1_02; Java HotSpot(TM)
Client VM 1.4.1_02-b06; Sun Microsystems Inc.
Comment 1 Lukas Hasik 2003-07-23 13:01:54 UTC
thanks for report.
Attach the exception as attachment next time, please. It's more readable. 
See http://qa.netbeans.org/bugzilla/reportbug.html
Comment 2 Martin Roskanin 2003-08-08 14:41:08 UTC
We will fix it till NB 4.0
Comment 3 Martin Roskanin 2003-09-23 13:53:08 UTC
fixed in [maintrunk]

the problem is also connected with bugparade's 4801274

/cvs/editor/src/org/netbeans/modules/editor/options/AbbrevsEditorPanel.java,v
 <--  AbbrevsEditorPanel.java
new revision: 1.14; previous revision: 1.13

/cvs/editor/src/org/netbeans/modules/editor/options/MacrosEditorPanel.java,v
 <--  MacrosEditorPanel.java
new revision: 1.10; previous revision: 1.9
Comment 4 Antonin Nebuzelsky 2003-11-04 14:51:47 UTC
Fixed also in Nevada Patch 1 and in Arrow.
Comment 5 Jiri Prox 2006-04-07 09:06:35 UTC
Verified