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 242022 - ArrayIndexOutOfBoundsException: -1
Summary: ArrayIndexOutOfBoundsException: -1
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-17 19:25 UTC by alied
Modified: 2014-03-25 20:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 207700


Attachments
stacktrace (2.91 KB, text/plain)
2014-02-17 19:25 UTC, alied
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alied 2014-02-17 19:25:43 UTC
Build: NetBeans IDE Dev (Build 201402140001)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Windows 7

User Comments:
alied: after running tests and show code coverage report.




Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: -1
   at java.util.Vector.elementData(Vector.java:730)
   at java.util.Vector.elementAt(Vector.java:473)
   at javax.swing.table.DefaultTableColumnModel.getColumn(DefaultTableColumnModel.java:294)
   at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderRenderer(BasicTableHeaderUI.java:693)
   at javax.swing.plaf.basic.BasicTableHeaderUI.paintCell(BasicTableHeaderUI.java:709)
   at javax.swing.plaf.basic.BasicTableHeaderUI.paint(BasicTableHeaderUI.java:685)
Comment 1 alied 2014-02-17 19:25:44 UTC
Created attachment 145325 [details]
stacktrace
Comment 2 cesar_pinheiro 2014-03-25 20:26:04 UTC
I have the same problem.
I understood that this problem occurs when I put the JPopupMenu in TableHeader.
When I click with the right button, the event is consumed by the JPopupMenu and the TableHeader don't adjust because the release event is consumed by the JPopupMenu.