[hg] main-silver: #225964: Prevent from ArrayIndexOutOfBoundsExc...

  • From:
  • To:
  • Subject: [hg] main-silver: #225964: Prevent from ArrayIndexOutOfBoundsExc...
  • Date: Wed, 13 Feb 2013 11:12:51 -0800

changeset 7498a1b79b80 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/7498a1b79b80
description:
        #225964: Prevent from ArrayIndexOutOfBoundsException.

diffstat:

 spi.viewmodel/src/org/netbeans/modules/viewmodel/OutlineTable.java |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff --git 
a/spi.viewmodel/src/org/netbeans/modules/viewmodel/OutlineTable.java 
b/spi.viewmodel/src/org/netbeans/modules/viewmodel/OutlineTable.java
--- a/spi.viewmodel/src/org/netbeans/modules/viewmodel/OutlineTable.java
+++ b/spi.viewmodel/src/org/netbeans/modules/viewmodel/OutlineTable.java
@@ -984,6 +984,9 @@
             }
             int visibleOrder = columnVisibleMap[i];
             logger.log(Level.FINE, "  visibleOrder[{0}] = {1}, ", new 
Object[]{i, visibleOrder});
+            if (visibleOrder >= tcm.getColumnCount()) {
+                continue;
+            }
             TableColumn tc;
             try {
                 tc = tcm.getColumn (visibleOrder);

[hg] main-silver: #225964: Prevent from ArrayIndexOutOfBoundsExc...

mentlicher 02/13/2013

Project Features

About this Project

Debugger was started in November 2009, is owned by tpavek, and has 29 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close