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
Depends on:
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

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

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.

java.lang.ArrayIndexOutOfBoundsException: -1
   at java.util.Vector.elementData(
   at java.util.Vector.elementAt(
   at javax.swing.table.DefaultTableColumnModel.getColumn(
   at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderRenderer(
   at javax.swing.plaf.basic.BasicTableHeaderUI.paintCell(
   at javax.swing.plaf.basic.BasicTableHeaderUI.paint(
Comment 1 alied 2014-02-17 19:25:44 UTC
Created attachment 145325 [details]
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.